tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan <xhh...@gmail.com>
Subject Use KeyManagerFactory.getDefaultAlgorithm() as the default value of algorithm
Date Wed, 16 Dec 2009 05:34:45 GMT
Hi,
    While playing with Tomcat 7 with non-Sun JDK, I got an error "SunX509
KeyManagerFactory not available", it seems that in AbstractEndpoint.java, it
uses SunX509 as the default value, how about using
KeyManagerFactory.getDefaultAlgorithm() as the default value to make Tomcat
more portable.

--->
 private String algorithm = KeyManagerFactory.getDefaultAlgorithm();
    public String getAlgorithm() { return algorithm;}
    public void setAlgorithm(String s ) { this.algorithm = s;}
<---

Thanks !
-- 
Ivan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message