Red Hat NETSCAPE ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual do Utilizador Página 77

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 124
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 76
Other Useful Information
Chapter 7 API Clarifications 77
Other Useful Information
This section contains information about the following topics:
Database Connection Pooling
Fetching the Client Certificate
Database Connection Pooling
Database connection pooling enhances the performance of servlet or JSP database
interactions. There are several JDBC 2.0 compatible drivers that support connection
pooling, for example Oracle 8i update and CloudScape 3.0.
Fetching the Client Certificate
When you enable SSL and require client certificate authorization, your servlets
have access to the client certificate as shown in the following example:
if (request.isSecure()) {
java.security.cert.X509Certificate[] certs;
certs = request.getAttribute("javax.servlet.request.X509Certificate");
if (certs != null) {
clientCert = certs[0];
if (clientCert != null) {
// Get the Distinguised Name for the user.
java.security.Principal userDN = clientCert.getSubjectDN();
...
}
}
}
The userDn is the fully qualified Distinguished Name for the user.
Vista de página 76
1 2 ... 72 73 74 75 76 77 78 79 80 81 82 ... 123 124

Comentários a estes Manuais

Sem comentários