org.alfresco.encryption
Class EncryptionKeysRegistryImpl
java.lang.Object
org.alfresco.encryption.EncryptionKeysRegistryImpl
- All Implemented Interfaces:
- org.alfresco.encryption.EncryptionKeysRegistry
public class EncryptionKeysRegistryImpl
- extends java.lang.Object
- implements org.alfresco.encryption.EncryptionKeysRegistry
Registered Encryption Keys are stored in the AttributeService directly under a top level key defined by
TOP_LEVEL_KEY (which means that all key aliases must be unique across however many keystores are being used).
- Since:
- 4.0
Nested classes/interfaces inherited from interface org.alfresco.encryption.EncryptionKeysRegistry |
org.alfresco.encryption.EncryptionKeysRegistry.KEY_STATUS |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TOP_LEVEL_KEY
public static java.lang.String TOP_LEVEL_KEY
EncryptionKeysRegistryImpl
public EncryptionKeysRegistryImpl()
setAttributeService
public void setAttributeService(AttributeService attributeService)
setCipherAlgorithm
public void setCipherAlgorithm(java.lang.String cipherAlgorithm)
setCipherProvider
public void setCipherProvider(java.lang.String cipherProvider)
setTransactionService
public void setTransactionService(TransactionService transactionService)
getEncryptor
protected org.alfresco.encryption.Encryptor getEncryptor(org.alfresco.encryption.KeyMap keys)
init
public void init()
registerKey
public void registerKey(java.lang.String keyAlias,
java.security.Key key)
- Specified by:
registerKey
in interface org.alfresco.encryption.EncryptionKeysRegistry
unregisterKey
public void unregisterKey(java.lang.String keyAlias)
- Specified by:
unregisterKey
in interface org.alfresco.encryption.EncryptionKeysRegistry
isKeyRegistered
public boolean isKeyRegistered(java.lang.String keyAlias)
- Specified by:
isKeyRegistered
in interface org.alfresco.encryption.EncryptionKeysRegistry
getRegisteredKeys
public java.util.List getRegisteredKeys(java.util.Set keyStoreKeys)
- Specified by:
getRegisteredKeys
in interface org.alfresco.encryption.EncryptionKeysRegistry
checkKey
public org.alfresco.encryption.EncryptionKeysRegistry.KEY_STATUS checkKey(java.lang.String keyAlias,
java.security.Key key)
- Specified by:
checkKey
in interface org.alfresco.encryption.EncryptionKeysRegistry
removeRegisteredKeys
public void removeRegisteredKeys(java.util.Set keys)
- Specified by:
removeRegisteredKeys
in interface org.alfresco.encryption.EncryptionKeysRegistry
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.