Why the attribute 'javax.servlet.request.X509Certificate' return an array of X509Certificate.
I don't understand how it's possible because when my client choose an certificate, he chooses only one...
For my test array contain always one element... so is it an specification to anticipate the future ?
Best Regards
>>The type is javax.servlet.request.X509Certificate[] ?? ie an array not a
>>single instance..
>>[EMAIL PROTECTED] on 18/12/2000 05:03:48
>>Please respond to [EMAIL PROTECTED]
>>To: [EMAIL PROTECTED]
>>cc: [EMAIL PROTECTED] (bcc: Ken X Horn)
>>Subject: RE:RE: R�f. : RE: X509 client certificate (Mr. McClanahan,
>> please take a look at this)
>>Excuse for my determination but my problem was not solve...
>>
>>After change my serveur.xml to clientAuth="true" like Craig R. McClanahan
>>said,
>>I fall again on my first exception when I try to extract the certificate
>>request because
>>object associate with �request attributes name�s
>>'javax.servlet.request.X509Certificate'
>>aren't of well-known type java.security.cert.X509Certificate but
>>[Ljava.security.cert.X509Certificate;@13a66f !!!!!
>>My snoop servlet give me this fragment information :
>>Request attributes:
>> filters.ExampleFilter.SERVLET_MAPPED =
>>InvokerFilter(ApplicationFilterConfig[name=Servlet Mapped Filter,
>>filterClass=filters.ExampleFilter])
>> javax.servlet.request.key-size = 40
>> javax.servlet.request.X509Certificate =
>>[Ljava.security.cert.X509Certificate;@13a66f
>> filters.ExampleFilter.PATH_MAPPED =
>>InvokerFilter(ApplicationFilterConfig[name=Path Mapped Filter,
>>filterClass=filters.ExampleFilter])
>> javax.servlet.request.cipher-suite = SSL_RSA_EXPORT_WITH_RC4_40_MD5
>>and my catalina server crash on exception when I try to cast this strange
>>objet to java.security.cert.X509Certificate
>>Exception dans le traitement de la requ�te s�curis�e :
>>java.lang.ClassCastException: [Ljava.security.cert.X509Certificate;
>> at SnoopServlet.doGet(SnoopServlet.java:68)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>> at
>>org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp....
>>Any idea?
>>Best regards
>>J�r�me
J�r�me
- Re: stupid question on array return by javax.servlet.... jerome . camilleri
- Re: stupid question on array return by javax.ser... Craig R. McClanahan
- RE: stupid question on array return by javax.ser... Stef�n F. Stef�nsson
