class SimpleKeyStoreFactory extends java.lang.Object
Implements a Basic KeyStore Factory to generate a java.security.KeyStore loaded with either a Key Store and/or Trust Store files into it if such store files are available. See the specific SimpleKeyStoreFactory.getKeyStoreModel and SimpleKeyStoreFactory.getTrustStoreModel methods for details.
| Modifiers | Name | Description |
|---|---|---|
protected java.lang.Object |
getResourceFromClassPath |
Loads a resource from the ClassPath given a specific path. |
protected java.lang.Object |
getResourceFromFile |
Loads a resource from the FileSystem given a specific path. |
| Type | Name and description |
|---|---|
protected java.lang.Object |
getDefaultKeyStoreHome()Used to specify a getter for the default directory hosting the KeyStore. |
protected java.lang.Object |
getDefaultTrustStoreHome()Used to specify a getter for the default directory hosting the TrustStore. |
java.util.Map |
getKeyStoreModel()Looks for the Key Store file, loads it, and generates a Map from it as specified in the getKeyStoreInternal method. |
java.util.Map |
getTrustStoreModel()Looks for the Trust Store file, loads it, and generates a Map from it as specified in the getKeyStoreInternal method. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Loads a resource from the ClassPath given a specific path.
Loads a resource from the FileSystem given a specific path.
Used to specify a getter for the default directory hosting the KeyStore. Currently it is set to the User's Home as seen by System.getProperty('user.home').
Used to specify a getter for the default directory hosting the TrustStore. Currently it is set to the User's Home as seen by System.getProperty('user.home').
Looks for the Key Store file, loads it, and generates a Map from it as specified in the getKeyStoreInternal method.
The config:ConfigObject may specify a path for the Key Store through https.keystore.path, if none is specified it
will use a path defined as "Default Key Store Home ( see getDefaultKeyStoreHome() )/( value of DEFAULT_KEYSTORE )" .
In the same manner a password for such Key Store might be specified through https.keystore.pass,
If none we will try to guess using common default keystore passwords as defined by the COMMON_PASSWORDS set.
Looks for the Trust Store file, loads it, and generates a Map from it as specified in the getKeyStoreInternal method.
The config:ConfigObject may specify a path for the Trust Store through https.truststore.path, if none is specified it
will use DEFAULT_CLASSPATH_TRUSTSTORE . In the same manner a password for such Trust Store might be specified through https.truststore.pass,
If none we will try to guess using common default keystore passwords.