[Bug 283375] fix property name; add additional checks to prevent NPE on passwords
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@651 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
c94e0ce88a
commit
d6e61ed545
|
@ -5,6 +5,7 @@ jetty-7.0.0.RC3-SNAPSHOT
|
|||
+ 285697 extract parameters if dispatch has query
|
||||
+ 282447 concurrent destinations in HttpClient
|
||||
+ 283172 fix Windows build, broken on directory creation with the DefaultServlet
|
||||
+ 283375 additional error-checking on SSL connector passwords to prevent NPE
|
||||
+ 283513 Check endp.isOpen when blocking read
|
||||
|
||||
jetty-7.0.0.RC2 29 June 2009
|
||||
|
|
|
@ -25,7 +25,7 @@ public interface SslConnector extends Connector
|
|||
public static final String KEYPASSWORD_PROPERTY = "org.eclipse.jetty.ssl.keypassword";
|
||||
|
||||
/** String name of keystore password property. */
|
||||
public static final String PASSWORD_PROPERTY = "org.eclipse.jetty.jetty.ssl.password";
|
||||
public static final String PASSWORD_PROPERTY = "org.eclipse.jetty.ssl.password";
|
||||
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
|
|
|
@ -659,7 +659,7 @@ public class SslSelectChannelConnector extends SelectChannelConnector implements
|
|||
/* ------------------------------------------------------------ */
|
||||
protected KeyManager[] getKeyManagers() throws Exception
|
||||
{
|
||||
KeyStore keyStore = getKeyStore(_keystorePath, _keystoreType, _password.toString());
|
||||
KeyStore keyStore = getKeyStore(_keystorePath, _keystoreType, _password==null?null:_password.toString());
|
||||
|
||||
KeyManagerFactory keyManagerFactory=KeyManagerFactory.getInstance(_sslKeyManagerFactoryAlgorithm);
|
||||
keyManagerFactory.init(keyStore,_keyPassword==null?(_password==null?null:_password.toString().toCharArray()):_keyPassword.toString().toCharArray());
|
||||
|
@ -677,7 +677,7 @@ public class SslSelectChannelConnector extends SelectChannelConnector implements
|
|||
_sslTrustManagerFactoryAlgorithm = _sslKeyManagerFactoryAlgorithm;
|
||||
}
|
||||
|
||||
KeyStore trustStore = getKeyStore(_truststorePath, _truststoreType, _trustPassword.toString());
|
||||
KeyStore trustStore = getKeyStore(_truststorePath, _truststoreType, _trustPassword==null?null:_trustPassword.toString());
|
||||
|
||||
TrustManagerFactory trustManagerFactory=TrustManagerFactory.getInstance(_sslTrustManagerFactoryAlgorithm);
|
||||
trustManagerFactory.init(trustStore);
|
||||
|
|
|
@ -200,7 +200,7 @@ public class SslSocketConnector extends SocketConnector implements SslConnector
|
|||
/* ------------------------------------------------------------ */
|
||||
protected KeyManager[] getKeyManagers() throws Exception
|
||||
{
|
||||
KeyStore keyStore = getKeyStore(_keystorePath, _keystoreType, _password.toString());
|
||||
KeyStore keyStore = getKeyStore(_keystorePath, _keystoreType, _password==null?null:_password.toString());
|
||||
|
||||
KeyManagerFactory keyManagerFactory=KeyManagerFactory.getInstance(_sslKeyManagerFactoryAlgorithm);
|
||||
keyManagerFactory.init(keyStore,_keyPassword==null?(_password==null?null:_password.toString().toCharArray()):_keyPassword.toString().toCharArray());
|
||||
|
@ -217,7 +217,7 @@ public class SslSocketConnector extends SocketConnector implements SslConnector
|
|||
_trustPassword = _password;
|
||||
_sslTrustManagerFactoryAlgorithm = _sslKeyManagerFactoryAlgorithm;
|
||||
}
|
||||
KeyStore trustStore = getKeyStore(_truststorePath, _truststoreType, _trustPassword.toString());
|
||||
KeyStore trustStore = getKeyStore(_truststorePath, _truststoreType, _trustPassword==null?null:_trustPassword.toString());
|
||||
|
||||
TrustManagerFactory trustManagerFactory=TrustManagerFactory.getInstance(_sslTrustManagerFactoryAlgorithm);
|
||||
trustManagerFactory.init(trustStore);
|
||||
|
|
Loading…
Reference in New Issue