Interface PasswordEncryptor

All Known Implementing Classes:
JasyptPasswordEncryptor

public interface PasswordEncryptor
This interface describes a way to encrypt and decrypt passwords. It allows a way to store encrypted keystore passwords in Merlin Crypto properties file, that can be decrypted before loading the keystore, etc.
  • Method Summary

    Modifier and Type
    Method
    Description
    decrypt(String encryptedPassword)
    Decrypt the given encrypted password
    encrypt(String password)
    Encrypt the given password
  • Method Details

    • encrypt

      String encrypt(String password)
      Encrypt the given password
      Parameters:
      password - the password to be encrypted
      Returns:
      the encrypted password
    • decrypt

      String decrypt(String encryptedPassword)
      Decrypt the given encrypted password
      Parameters:
      encryptedPassword - the encrypted password to decrypt
      Returns:
      the decrypted password