com.ulisesbocchio.jasyptspringboot.encryptor.SimpleGCMStringEncryptor 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 SimpleGCMStringEncryptor extends ByteEncryptorStringEncryptorDelegate {
/**
* Constructor for SimpleGCMStringEncryptor.
*
* @param delegate a {@link com.ulisesbocchio.jasyptspringboot.encryptor.SimpleAsymmetricByteEncryptor} object
*/
public SimpleGCMStringEncryptor(SimpleAsymmetricByteEncryptor delegate) {
super(delegate);
}
/**
* Constructor for SimpleGCMStringEncryptor.
*
* @param config a {@link com.ulisesbocchio.jasyptspringboot.encryptor.SimpleGCMConfig} object
*/
public SimpleGCMStringEncryptor(SimpleGCMConfig config) {
super(new SimpleGCMByteEncryptor(config));
}
}