Class SimpleTextEncryptor
- java.lang.Object
-
- org.openrefine.extension.database.SimpleTextEncryptor
-
- All Implemented Interfaces:
org.jasypt.util.text.TextEncryptor
public class SimpleTextEncryptor extends Object implements org.jasypt.util.text.TextEncryptor
-
-
Constructor Summary
Constructors Constructor Description SimpleTextEncryptor(String passwordChars)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
decrypt(String encryptedMessage)
String
encrypt(String message)
void
setPassword(String password)
void
setPasswordCharArray(char[] password)
Sets a password, as a char[]
-
-
-
Constructor Detail
-
SimpleTextEncryptor
public SimpleTextEncryptor(String passwordChars)
-
-
Method Detail
-
decrypt
public String decrypt(String encryptedMessage)
- Specified by:
decrypt
in interfaceorg.jasypt.util.text.TextEncryptor
-
encrypt
public String encrypt(String message)
- Specified by:
encrypt
in interfaceorg.jasypt.util.text.TextEncryptor
-
setPassword
public void setPassword(String password)
-
setPasswordCharArray
public void setPasswordCharArray(char[] password)
Sets a password, as a char[]- Parameters:
password
- the password to be set.- Since:
- 1.8
-
-