|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.ws.soap.security.support.KeyStoreUtils
public abstract class KeyStoreUtils
Generic utility methods for dealing with KeyStore objects.
| Constructor Summary | |
|---|---|
KeyStoreUtils()
|
|
| Method Summary | |
|---|---|
static java.security.KeyStore |
loadDefaultKeyStore()
Loads the key store indicated by system properties. |
static java.security.KeyStore |
loadDefaultTrustStore()
Loads a default trust store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyStoreUtils()
| Method Detail |
|---|
public static java.security.KeyStore loadDefaultKeyStore()
throws java.security.GeneralSecurityException,
java.io.IOException
javax.net.ssl.keyStore, javax.net.ssl.keyStorePassword, and
javax.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.
java.security.GeneralSecurityException
java.io.IOException
public static java.security.KeyStore loadDefaultTrustStore()
throws java.security.GeneralSecurityException,
java.io.IOException
javax.net.ssl.trustStore is defined, its value is loaded. If the
javax.net.ssl.trustStorePassword system property is also defined, its value is used as a password.
If the javax.net.ssl.trustStoreType system property is defined, its value is used as a key store
type.
If javax.net.ssl.trustStore is defined but the specified file does not exist, then a default, empty
trust store is created. javax.net.ssl.trustStore system property was not
specified, but if the file $JAVA_HOME/lib/security/jssecacerts exists, that file is used. $JAVA_HOME/lib/security/cacerts exists, that file is used.
java.security.GeneralSecurityException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||