Class 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

      Fields 
      Modifier and Type Field Description
      static java.lang.String TOP_LEVEL_KEY  
    • 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<java.lang.String> getRegisteredKeys​(java.util.Set<java.lang.String> 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<java.lang.String> keys)
        Specified by:
        removeRegisteredKeys in interface org.alfresco.encryption.EncryptionKeysRegistry