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 -
Method Summary
Modifier and TypeMethodDescriptionbyte[]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.
-
Constructor Details
-
SimplePBEByteEncryptor
public SimplePBEByteEncryptor()
-
-
Method Details
-
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
- 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
-
setAlgorithm
Setter for the field
algorithm.- Parameters:
algorithm- aStringobject
-