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.
Comentários a estes Manuais