org.alfresco.encryption
Class KeystoreKeyProvider
java.lang.Object
org.alfresco.encryption.AbstractKeyProvider
org.alfresco.encryption.KeystoreKeyProvider
- All Implemented Interfaces:
- KeyProvider
public class KeystoreKeyProvider
- extends AbstractKeyProvider
Provides system-wide secret keys for symmetric database encryption from a key store
in the filesystem. Just wraps a key store.
- Since:
- 4.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeystoreKeyProvider
public KeystoreKeyProvider()
- Constructs the provider with required defaults
KeystoreKeyProvider
public KeystoreKeyProvider(KeyStoreParameters keyStoreParameters,
KeyResourceLoader keyResourceLoader)
KeystoreKeyProvider
public KeystoreKeyProvider(AlfrescoKeyStore keyStore)
- Parameters:
encryptionParameters
- keyResourceLoader
-
setUseBackupKeys
public void setUseBackupKeys(boolean useBackupKeys)
setKeyStore
public void setKeyStore(AlfrescoKeyStore keyStore)
init
public void init()
getKey
public java.security.Key getKey(java.lang.String keyAlias)
- Get an encryption key if available.
- Parameters:
keyAlias
- the key alias
- Returns:
- the encryption key and a timestamp of when it was last changed
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.