Interface CleanablePasswordBased

All Superinterfaces:
PasswordBased
All Known Subinterfaces:
PBEBigDecimalCleanablePasswordEncryptor, PBEBigIntegerCleanablePasswordEncryptor, PBEByteCleanablePasswordEncryptor, PBEStringCleanablePasswordEncryptor
All Known Implementing Classes:
PooledPBEBigDecimalEncryptor, PooledPBEBigIntegerEncryptor, PooledPBEByteEncryptor, PooledPBEStringEncryptor, StandardPBEBigDecimalEncryptor, StandardPBEBigIntegerEncryptor, StandardPBEByteEncryptor, StandardPBEStringEncryptor

public interface CleanablePasswordBased extends PasswordBased

Common interface for all entities which can be set a password in char[] shape, which can be cleaned once the encryptor is initialized so that no immutable Strings containing the password are left in memory.

Since:
1.8
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setPasswordCharArray(char[] password)
    Sets a password to be used by the encryptor, as a (cleanable) char[].

    Methods inherited from interface org.jasypt.encryption.pbe.PasswordBased

    setPassword
  • Method Details

    • setPasswordCharArray

      void setPasswordCharArray(char[] password)

      Sets a password to be used by the encryptor, as a (cleanable) char[].

      Parameters:
      password - the password to be used.
      Since:
      1.8