Class KeyStoreUtils
java.lang.Object
org.springframework.ws.soap.security.support.KeyStoreUtils
Generic utility methods for dealing with
KeyStore objects.- Since:
- 1.5.0
-
Constructor Details
-
KeyStoreUtils
public KeyStoreUtils()
-
-
Method Details
-
loadDefaultKeyStore
Loads the key store indicated by system properties. This method tries to load a key store by consulting the following system properties:javax.net.ssl.keyStore,javax.net.ssl.keyStorePassword, andjavax.net.ssl.keyStoreType.If these properties specify a file with an appropriate password, the factory uses this file for the key store. If that file does not exist, then a default, empty keystore is created.
This behavior corresponds to the standard J2SDK behavior for SSL key stores.
- Throws:
GeneralSecurityExceptionIOException- See Also:
-
loadDefaultTrustStore
Loads a default trust store. This method uses the following algorithm:- If the system property
javax.net.ssl.trustStoreis defined, its value is loaded. If thejavax.net.ssl.trustStorePasswordsystem property is also defined, its value is used as a password. If thejavax.net.ssl.trustStoreTypesystem property is defined, its value is used as a key store type.If
javax.net.ssl.trustStoreis defined but the specified file does not exist, then a default, empty trust store is created. - If the
javax.net.ssl.trustStoresystem property was not specified, but if the file$JAVA_HOME/lib/security/jssecacertsexists, that file is used. - If the file
$JAVA_HOME/lib/security/cacertsexists, that file is used.
This behavior corresponds to the standard J2SDK behavior for SSL trust stores.
- Throws:
GeneralSecurityExceptionIOException- See Also:
- If the system property
-