com.ulisesbocchio.jasyptspringboot.encryptor.SimpleAsymmetricStringEncryptor Maven / Gradle / Ivy
The newest version!
package com.ulisesbocchio.jasyptspringboot.encryptor;
/**
* {@link org.jasypt.encryption.StringEncryptor} version of {@link com.ulisesbocchio.jasyptspringboot.encryptor.SimpleAsymmetricByteEncryptor} that just relies on
* delegation from {@link com.ulisesbocchio.jasyptspringboot.encryptor.ByteEncryptorStringEncryptorDelegate} and provides a constructor for {@link com.ulisesbocchio.jasyptspringboot.encryptor.SimpleAsymmetricConfig}
*
* @author Ulises Bocchio
* @version $Id: $Id
*/
public class SimpleAsymmetricStringEncryptor extends ByteEncryptorStringEncryptorDelegate {
/**
* Constructor for SimpleAsymmetricStringEncryptor.
*
* @param delegate a {@link com.ulisesbocchio.jasyptspringboot.encryptor.SimpleAsymmetricByteEncryptor} object
*/
public SimpleAsymmetricStringEncryptor(SimpleAsymmetricByteEncryptor delegate) {
super(delegate);
}
/**
* Constructor for SimpleAsymmetricStringEncryptor.
*
* @param config a {@link com.ulisesbocchio.jasyptspringboot.encryptor.SimpleAsymmetricConfig} object
*/
public SimpleAsymmetricStringEncryptor(SimpleAsymmetricConfig config) {
super(new SimpleAsymmetricByteEncryptor(config));
}
}