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 Summary
Constructors Constructor Description SimplePBEByteEncryptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]decrypt(byte[] encryptedMessage)byte[]encrypt(byte[] message)voidsetAlgorithm(String algorithm)Setter for the fieldalgorithm.voidsetIterations(int iterations)Setter for the fielditerations.voidsetPassword(String password)voidsetSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)Setter for the fieldsaltGenerator.
-
-
-
Method Detail
-
encrypt
public byte[] encrypt(byte[] message)
- Specified by:
encryptin interfaceorg.jasypt.encryption.ByteEncryptor
-
decrypt
public byte[] decrypt(byte[] encryptedMessage)
- Specified by:
decryptin interfaceorg.jasypt.encryption.ByteEncryptor
-
setPassword
public void setPassword(String password)
- Specified by:
setPasswordin interfaceorg.jasypt.encryption.pbe.PasswordBased
-
setSaltGenerator
public void setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)
Setter for the field
saltGenerator.- Parameters:
saltGenerator- aSaltGeneratorobject
-
setIterations
public void setIterations(int iterations)
Setter for the field
iterations.- Parameters:
iterations- a int
-
-