Other Useful Information; Database Connection Pooling; Fetching The Client Certificate - Netscape ENTERPRISE SERVER 6.0 - PROGRAMMER GUIDE TO SERVLETS Programmer's Manual

Guide to servlets
Table of Contents

Advertisement

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 Oracle8i™ 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.getSubjectDN();
}
}
The
userDn
clientCert = certs[0];
if (clientCert != null) {
// Get the Distinguised Name for the user.
java.security.Principal userDN =
...
}
is the fully qualified Distinguished Name for the user.
Other Useful Information
Chapter 7
API Clarifications
79

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents