Package org.alfresco.encryption
Class EncryptionKeysRegistryImpl
- java.lang.Object
-
- org.alfresco.encryption.EncryptionKeysRegistryImpl
-
- All Implemented Interfaces:
EncryptionKeysRegistry
public class EncryptionKeysRegistryImpl extends Object implements 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 Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.encryption.EncryptionKeysRegistry
EncryptionKeysRegistry.KEY_STATUS
-
-
Field Summary
Fields Modifier and Type Field Description static StringTOP_LEVEL_KEY
-
Constructor Summary
Constructors Constructor Description EncryptionKeysRegistryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EncryptionKeysRegistry.KEY_STATUScheckKey(String keyAlias, Key key)protected EncryptorgetEncryptor(KeyMap keys)List<String>getRegisteredKeys(Set<String> keyStoreKeys)voidinit()booleanisKeyRegistered(String keyAlias)voidregisterKey(String keyAlias, Key key)voidremoveRegisteredKeys(Set<String> keys)voidsetAttributeService(AttributeService attributeService)voidsetCipherAlgorithm(String cipherAlgorithm)voidsetCipherProvider(String cipherProvider)voidsetTransactionService(TransactionService transactionService)voidunregisterKey(String keyAlias)
-
-
-
Field Detail
-
TOP_LEVEL_KEY
public static String TOP_LEVEL_KEY
-
-
Method Detail
-
setAttributeService
public void setAttributeService(AttributeService attributeService)
-
setCipherAlgorithm
public void setCipherAlgorithm(String cipherAlgorithm)
-
setCipherProvider
public void setCipherProvider(String cipherProvider)
-
setTransactionService
public void setTransactionService(TransactionService transactionService)
-
init
public void init()
-
registerKey
public void registerKey(String keyAlias, Key key)
- Specified by:
registerKeyin interfaceEncryptionKeysRegistry
-
unregisterKey
public void unregisterKey(String keyAlias)
- Specified by:
unregisterKeyin interfaceEncryptionKeysRegistry
-
isKeyRegistered
public boolean isKeyRegistered(String keyAlias)
- Specified by:
isKeyRegisteredin interfaceEncryptionKeysRegistry
-
getRegisteredKeys
public List<String> getRegisteredKeys(Set<String> keyStoreKeys)
- Specified by:
getRegisteredKeysin interfaceEncryptionKeysRegistry
-
checkKey
public EncryptionKeysRegistry.KEY_STATUS checkKey(String keyAlias, Key key)
- Specified by:
checkKeyin interfaceEncryptionKeysRegistry
-
removeRegisteredKeys
public void removeRegisteredKeys(Set<String> keys)
- Specified by:
removeRegisteredKeysin interfaceEncryptionKeysRegistry
-
-