Interface EncryptionManager

All Known Implementing Classes:
DefaultEncryptionManager

public interface EncryptionManager
Manager for in-database passwords encryption.
  • Method Details

    • changeEncryptor

      void changeEncryptor(String encryptorKey)
      Changes currently used encryptor to the new one represented by encryptorKey. Encrypts all passwords with the new encryptor.
    • changeEncryptionKey

      void changeEncryptionKey()
      Changes currently used encryption key to new one if applicable for current encryptor.
    • getAvailableEncryptorNames

      Collection<String> getAvailableEncryptorNames()
      Returns names of available encryptors.
    • getDefaultEncryptorName

      Optional<String> getDefaultEncryptorName()
      Returns name of default encryptor.
    • disableEncryption

      void disableEncryption()
      Disables encryption, and decrypts all passwords.