com.ulisesbocchio.jasyptspringboot.encryptor.FixedBase64ByteArraySaltGenerator Maven / Gradle / Ivy
The newest version!
package com.ulisesbocchio.jasyptspringboot.encryptor;
import org.jasypt.salt.ByteArrayFixedSaltGenerator;
import java.util.Base64;
/**
* FixedBase64ByteArraySaltGenerator class.
*
* @author Sergio.U.Bocchio
* @version $Id: $Id
*/
public class FixedBase64ByteArraySaltGenerator extends ByteArrayFixedSaltGenerator {
/**
* Constructor for FixedBase64ByteArraySaltGenerator.
*
* @param base64Salt a {@link java.lang.String} object
*/
public FixedBase64ByteArraySaltGenerator(String base64Salt) {
super(Base64.getDecoder().decode(base64Salt));
}
}