Red Hat NETSCAPE ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Bedienungsanleitung Seite 77

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 124
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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.
Seitenansicht 76
1 2 ... 72 73 74 75 76 77 78 79 80 81 82 ... 123 124

Kommentare zu diesen Handbüchern

Keine Kommentare