Class EncryptionKeysRegistryImpl

  • All Implemented Interfaces:
    org.alfresco.encryption.EncryptionKeysRegistry

    public class EncryptionKeysRegistryImpl
    extends 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
    • Field Detail

      • TOP_LEVEL_KEY

        public static String TOP_LEVEL_KEY
    • Constructor Detail

      • EncryptionKeysRegistryImpl

        public EncryptionKeysRegistryImpl()
    • 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)
      • getEncryptor

        protected org.alfresco.encryption.Encryptor getEncryptor​(org.alfresco.encryption.KeyMap keys)
      • init

        public void init()
      • registerKey

        public void registerKey​(String keyAlias,
                                Key key)
        Specified by:
        registerKey in interface org.alfresco.encryption.EncryptionKeysRegistry
      • unregisterKey

        public void unregisterKey​(String keyAlias)
        Specified by:
        unregisterKey in interface org.alfresco.encryption.EncryptionKeysRegistry
      • isKeyRegistered

        public boolean isKeyRegistered​(String keyAlias)
        Specified by:
        isKeyRegistered in interface org.alfresco.encryption.EncryptionKeysRegistry
      • getRegisteredKeys

        public List<String> getRegisteredKeys​(Set<String> keyStoreKeys)
        Specified by:
        getRegisteredKeys in interface org.alfresco.encryption.EncryptionKeysRegistry
      • checkKey

        public org.alfresco.encryption.EncryptionKeysRegistry.KEY_STATUS checkKey​(String keyAlias,
                                                                                  Key key)
        Specified by:
        checkKey in interface org.alfresco.encryption.EncryptionKeysRegistry
      • removeRegisteredKeys

        public void removeRegisteredKeys​(Set<String> keys)
        Specified by:
        removeRegisteredKeys in interface org.alfresco.encryption.EncryptionKeysRegistry