Hello
I have Tomcat configured to use client authentication in server.xml .
I'm using Sun j2se 1.4 .
When I try to get the client certificate, with:
X509Certificate[] certs =
(X509Certificate[])request.getAttribute("javax.servlet.request.X509Certificate");
I get the cast exception:
StandardWrapperValve[EnerServlet]: Servlet.service() for servlet
EnerServlet threw exception
java.Lang.ClassCastException: [Ljava.security.cert.X509Certificate;
at EnerServlet.doGet(EnerServlet.java:78)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
(...)
Could anybody help me throw some light into the problem?
Thanks in advance,
Jo�o Luis
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>