JDK 1.4's javac doesn't like this. It's complaining about casting Object to
X509Certificate[].
On Saturday 21 September 2002 02:50 am, [EMAIL PROTECTED] wrote:
> billbarker 2002/09/20 23:50:30
>
> Modified: catalina/src/share/org/apache/catalina/authenticator
> SSLAuthenticator.java
> Log:
> Final level in replacing CertificatesValve under Coyote.
>
> This is a little hackish, but is portable to 4.x without changing the
> API. Here, it should probably change once Coyote is properly exposed to
> Catalina.
>
> If there aren't any major complaints, I'll port to the 4.1 branch later.
>
> Revision Changes Path
> 1.2 +7 -4
> jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/authenticato
>r/SSLAuthenticator.java
>
> Index: SSLAuthenticator.java
> ===================================================================
> RCS file:
> /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/au
>thenticator/SSLAuthenticator.java,v retrieving revision 1.1
> retrieving revision 1.2
> diff -u -r1.1 -r1.2
> --- SSLAuthenticator.java 18 Jul 2002 16:48:02 -0000 1.1
> +++ SSLAuthenticator.java 21 Sep 2002 06:50:30 -0000 1.2
> @@ -150,6 +150,9 @@
> log(" Looking up certificates");
> X509Certificate certs[] = (X509Certificate[])
>
> request.getRequest().getAttribute(Globals.CERTIFICATES_ATTR); + if ((certs
> == null) || (certs.length < 1)) {
> + certs =
> request.getRequest().getAttribute(Globals.SSL_CERTIFICATE_ATTR); + }
> if ((certs == null) || (certs.length < 1)) {
> if (debug >= 1)
> log(" No certificates included with this request");
Index: SSLAuthenticator.java
===================================================================
RCS file: /home/cvspublic/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/authenticator/SSLAuthenticator.java,v
retrieving revision 1.3
diff -u -r1.3 SSLAuthenticator.java
--- SSLAuthenticator.java 21 Sep 2002 07:25:21 -0000 1.3
+++ SSLAuthenticator.java 22 Sep 2002 19:46:43 -0000
@@ -151,7 +151,7 @@
X509Certificate certs[] = (X509Certificate[])
request.getRequest().getAttribute(Globals.CERTIFICATES_ATTR);
if ((certs == null) || (certs.length < 1)) {
- certs = request.getRequest().getAttribute(Globals.SSL_CERTIFICATE_ATTR);
+ certs = (X509Certificate[]) request.getRequest().getAttribute(Globals.SSL_CERTIFICATE_ATTR);
}
if ((certs == null) || (certs.length < 1)) {
if (debug >= 1)
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>