public interface AlfrescoKeyStore
Modifier and Type | Field and Description |
---|---|
static String |
KEY_KEYSTORE_PASSWORD |
Modifier and Type | Method and Description |
---|---|
void |
backup()
Backup the keystore to the backup location.
|
void |
create()
Create the key store if it doesn't exist.
|
KeyManager[] |
createKeyManagers()
Create an array of key managers from keys in the key store.
|
TrustManager[] |
createTrustManagers()
Create an array of trust managers from certificates in the key store.
|
boolean |
exists()
Does the underlying key store exist?
|
Key |
getBackupKey(String keyAlias)
Return the backup key with the given key alias.
|
KeyStoreParameters |
getBackupKeyStoreParameters()
The backup key store parameters.
|
Key |
getKey(String keyAlias)
Return the key with the given key alias.
|
Set<String> |
getKeyAliases()
Return all key aliases in the key store.
|
KeyStoreParameters |
getKeyStoreParameters()
The key store parameters.
|
long |
getKeyTimestamp(String keyAlias)
Return the timestamp (in ms) of when the key was last loaded from the keystore on disk.
|
String |
getName()
The name of the keystore.
|
void |
reload()
Reload the keys from the key store.
|
void |
validateKeys()
Check that the keys in the key store are valid i.e.
|
static final String KEY_KEYSTORE_PASSWORD
String getName()
void backup()
KeyStoreParameters getKeyStoreParameters()
KeyStoreParameters getBackupKeyStoreParameters()
boolean exists()
Key getKey(String keyAlias)
keyAlias
- Stringlong getKeyTimestamp(String keyAlias)
keyAlias
- StringKey getBackupKey(String keyAlias)
keyAlias
- StringKeyManager[] createKeyManagers()
TrustManager[] createTrustManagers()
void create()
void reload() throws InvalidKeystoreException, MissingKeyException
void validateKeys() throws InvalidKeystoreException, MissingKeyException
Copyright © 2005–2018 Alfresco Software. All rights reserved.