Tomcat 4.0 is supposed to implement the Servlet 2.3 specification. The 2.3 spec says that ServletRequest.getParameter("javax.servlet.request.X509Certificate") is required to return an array of Objects of type java.security.cert.X509Certificate. But this code:

X509Certificate[] certs =
(X509Certificate[]) request.getAttribute(
"javax.servlet.request.X509Certificate");

Always generates a ClassCastException. There is a non-null object being returned from getAttribute, but it won't cast to X509Certificate[]. Can anybody tell me where I'm going wrong?

My configuration is Apache 2.0.44, Tomcat 4.1.18, mod_jk built from the connectors-4.1.18 package and the mod_ssl that comes with the 2.0.44 source distribution.

Any help would be appreciated.

Robert Dana



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to