Class SimplePBEByteEncryptor

java.lang.Object
com.ulisesbocchio.jasyptspringboot.encryptor.SimplePBEByteEncryptor
All Implemented Interfaces:
org.jasypt.encryption.ByteEncryptor, org.jasypt.encryption.pbe.PasswordBased, org.jasypt.encryption.pbe.PBEByteEncryptor

public class SimplePBEByteEncryptor extends Object implements org.jasypt.encryption.pbe.PBEByteEncryptor

SimplePBEByteEncryptor class.

Version:
$Id: $Id
Author:
Sergio.U.Bocchio
  • Constructor Details

    • SimplePBEByteEncryptor

      public SimplePBEByteEncryptor()
  • Method Details

    • encrypt

      public byte[] encrypt(byte[] message)
      Specified by:
      encrypt in interface org.jasypt.encryption.ByteEncryptor
    • decrypt

      public byte[] decrypt(byte[] encryptedMessage)
      Specified by:
      decrypt in interface org.jasypt.encryption.ByteEncryptor
    • setPassword

      public void setPassword(String password)
      Specified by:
      setPassword in interface org.jasypt.encryption.pbe.PasswordBased
    • setSaltGenerator

      public void setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)

      Setter for the field saltGenerator.

      Parameters:
      saltGenerator - a SaltGenerator object
    • setIterations

      public void setIterations(int iterations)

      Setter for the field iterations.

      Parameters:
      iterations - a int
    • setAlgorithm

      public void setAlgorithm(String algorithm)

      Setter for the field algorithm.

      Parameters:
      algorithm - a String object