Class SimpleAsymmetricByteEncryptor
java.lang.Object
com.ulisesbocchio.jasyptspringboot.encryptor.SimpleAsymmetricByteEncryptor
- All Implemented Interfaces:
org.jasypt.encryption.ByteEncryptor
public class SimpleAsymmetricByteEncryptor
extends Object
implements org.jasypt.encryption.ByteEncryptor
Vanilla implementation of an asymmetric encryptor that relies on
AsymmetricCryptography
Keys are lazily loaded from SimpleAsymmetricConfig- Version:
- $Id: $Id
- Author:
- Ulises Bocchio
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for SimpleAsymmetricByteEncryptor. -
Method Summary
-
Constructor Details
-
SimpleAsymmetricByteEncryptor
Constructor for SimpleAsymmetricByteEncryptor.
- Parameters:
config- aSimpleAsymmetricConfigobject
-
-
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
-