org.alfresco.encryption
Class EncryptionKeysRegistryImpl

java.lang.Object
  extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface org.alfresco.encryption.EncryptionKeysRegistry
org.alfresco.encryption.EncryptionKeysRegistry.KEY_STATUS
 
Field Summary
static java.lang.String TOP_LEVEL_KEY
           
 
Constructor Summary
EncryptionKeysRegistryImpl()
           
 
Method Summary
 org.alfresco.encryption.EncryptionKeysRegistry.KEY_STATUS checkKey(java.lang.String keyAlias, java.security.Key key)
           
protected  org.alfresco.encryption.Encryptor getEncryptor(org.alfresco.encryption.KeyMap keys)
           
 java.util.List getRegisteredKeys(java.util.Set keyStoreKeys)
           
 void init()
           
 boolean isKeyRegistered(java.lang.String keyAlias)
           
 void registerKey(java.lang.String keyAlias, java.security.Key key)
           
 void removeRegisteredKeys(java.util.Set keys)
           
 void setAttributeService(AttributeService attributeService)
           
 void setCipherAlgorithm(java.lang.String cipherAlgorithm)
           
 void setCipherProvider(java.lang.String cipherProvider)
           
 void setTransactionService(TransactionService transactionService)
           
 void unregisterKey(java.lang.String keyAlias)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOP_LEVEL_KEY

public static java.lang.String TOP_LEVEL_KEY
Constructor Detail

EncryptionKeysRegistryImpl

public EncryptionKeysRegistryImpl()
Method Detail

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.