public class KeyStoreFactory
extends java.lang.Object
KeyStore factory methods. The LCS system performs
cryptographic operations and needs the KeyStore object to hold
keys and certificates. Instances of loaded key stores are cached here and
accessed by a unique combination of the key store's path, type, and password
digest.| Constructor and Description |
|---|
KeyStoreFactory() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getDigestString(java.lang.String value)
Returns the SHA digest for the value.
|
static java.security.KeyStore |
getInstance(java.lang.String keyStorePath,
java.lang.String keyStoreType) |
static java.security.KeyStore |
getInstance(java.lang.String keyStorePath,
java.lang.String keyStoreType,
java.lang.String keyStorePassword)
Returns the
KeyStore instance. |
static java.util.Date |
getSigningKeyExpirationDate(java.lang.String keyStorePath,
java.lang.String keyStoreType,
java.lang.String keyAlias) |
public static java.lang.String getDigestString(java.lang.String value)
throws java.lang.Exception
value - the valuejava.lang.Exception - if an exception occurredpublic static java.security.KeyStore getInstance(java.lang.String keyStorePath,
java.lang.String keyStoreType)
throws java.lang.Exception
java.lang.Exceptionpublic static java.security.KeyStore getInstance(java.lang.String keyStorePath,
java.lang.String keyStoreType,
java.lang.String keyStorePassword)
throws java.lang.Exception
KeyStore instance.
Each key store instance is uniquely defined by the
keyStorePath parameter. The first access to the key store
results in a new key store instance. All subsequent requests to the key
store return a cached instance.
keyStorePath - the key store's pathkeyStoreType - the key store's typekeyStorePassword - the key store's passwordnull if the key store's
path, type, or password is not validjava.lang.Exception - if the key store was not found at the specified path,
if the key store type or password does not match, or if an
exception occurredpublic static java.util.Date getSigningKeyExpirationDate(java.lang.String keyStorePath,
java.lang.String keyStoreType,
java.lang.String keyAlias)
throws java.lang.Exception
java.lang.Exception