public interface TwoWayPasswordEncoderInterface
| Modifier and Type | Method and Description |
|---|---|
String |
decode(String encodedPassword)
Decode a password which does NOT have a prefix attached.
|
String |
decode(String encodedPassword,
boolean optionallyEncrypted)
Decode a password.
|
String |
encode(String password)
Encode the raw password, include a prefix indicating the type of encryption used.
|
String |
encode(String password,
boolean includePrefix)
Encode a password.
|
String[] |
getPrefixes() |
void |
init()
Initialize the password encoder by loading key details from the environment (kettle.properties or system settings).
|
void init()
throws KettleException
KettleExceptionString encode(String password)
password - The password to encodeString encode(String password, boolean includePrefix)
password - The password to encodeincludePrefix - True if a prefix needs to be encodedString decode(String encodedPassword, boolean optionallyEncrypted)
encodedPassword - The encoded password with or without a prefixoptionallyEncrypted - Set to true if the password is optionally encrypted (indicated by a prefix).String decode(String encodedPassword)
encodedPassword - The encoded password without a prefixString[] getPrefixes()