|Constructor and Description|
|Modifier and Type||Method and Description|
Loads the key store indicated by system properties.
Loads a default trust store.
public static KeyStore loadDefaultKeyStore() throws GeneralSecurityException, IOException
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.
public static KeyStore loadDefaultTrustStore() throws GeneralSecurityException, IOException
javax.net.ssl.trustStoreis defined, its value is loaded. If the
javax.net.ssl.trustStorePasswordsystem property is also defined, its value is used as a password. If the
javax.net.ssl.trustStoreTypesystem property is defined, its value is used as a key store type.
javax.net.ssl.trustStore is defined but the specified file does not exist, then a default, empty
trust store is created.
javax.net.ssl.trustStoresystem property was not specified, but if the file
$JAVA_HOME/lib/security/jssecacertsexists, that file is used.
$JAVA_HOME/lib/security/cacertsexists, that file is used.
This behavior corresponds to the standard J2SDK behavior for SSL trust stores.