tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse JSSE14SocketFactory.java
Date Sat, 09 Aug 2003 00:10:08 GMT

>   +    protected TrustManager[] getTrustManagers(String keystoreType)
>   +                throws Exception {
>   +
>   +        TrustManager[] tm = null;

Don't you need a check for keystoreType == null here?

>   +
>   +        KeyStore trustStore = getTrustStore(keystoreType);
>   +        if (trustStore != null) {
>   +            TrustManagerFactory tmf =
TrustManagerFactory.getInstance("SunX509");
>   +            tmf.init(trustStore);
>   +            tm = tmf.getTrustManagers();
>   +        }
>   +
>   +        return tm;
>   +    }
>    }
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>


Mime
View raw message