tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Luehe <Jan.Lu...@Sun.COM>
Subject Re: cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse JSSE14SocketFactory.java
Date Sat, 09 Aug 2003 17:17:58 GMT
Bill Barker wrote:
>>  +    protected TrustManager[] getTrustManagers(String keystoreType)
>>  +                throws Exception {
>>  +
>>  +        TrustManager[] tm = null;
> 
> 
> Don't you need a check for keystoreType == null here?

Yes, thanks, just added one.

Jan


> 
>>  +
>>  +        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
>>
> 
> 
> 
> ------------------------------------------------------------------------
> 
> This message is intended only for the use of the person(s) listed above as the intended
recipient(s), and may contain information that is PRIVILEGED and CONFIDENTIAL.  If you are
not an intended recipient, you may not read, copy, or distribute this message or any attachment.
If you received this communication in error, please notify us immediately by e-mail and then
delete all copies of this message and any attachments.
> 
> In addition you should be aware that ordinary (unencrypted) e-mail sent through the Internet
is not secure. Do not send confidential or sensitive information, such as social security
numbers, account numbers, personal identification numbers and passwords, to us via ordinary
(unencrypted) e-mail.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> 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