public class JasyptPasswordEncryptor extends Object implements PasswordEncryptor
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ALGORITHM |
Constructor and Description |
---|
JasyptPasswordEncryptor(CallbackHandler callbackHandler) |
JasyptPasswordEncryptor(CallbackHandler callbackHandler,
String algorithm) |
JasyptPasswordEncryptor(String masterPassword) |
JasyptPasswordEncryptor(String masterPassword,
String algorithm) |
Modifier and Type | Method and Description |
---|---|
String |
decrypt(String encryptedPassword)
Decrypt the given encrypted password
|
String |
encrypt(String password)
Encrypt the given password
|
public static final String DEFAULT_ALGORITHM
public JasyptPasswordEncryptor(String masterPassword)
public JasyptPasswordEncryptor(CallbackHandler callbackHandler)
public JasyptPasswordEncryptor(CallbackHandler callbackHandler, String algorithm)
public String encrypt(String password)
encrypt
in interface PasswordEncryptor
password
- the password to be encryptedpublic String decrypt(String encryptedPassword)
decrypt
in interface PasswordEncryptor
encryptedPassword
- the encrypted password to decryptCopyright © 2017 JBoss by Red Hat. All rights reserved.