public class KettleTwoWayPasswordEncoder extends Object implements org.pentaho.di.core.encryption.TwoWayPasswordEncoderInterface
Modifier and Type | Field and Description |
---|---|
static String |
PASSWORD_ENCRYPTED_PREFIX
The word that is put before a password to indicate an encrypted form.
|
Constructor and Description |
---|
KettleTwoWayPasswordEncoder() |
Modifier and Type | Method and Description |
---|---|
String |
decode(String encodedPassword) |
String |
decode(String encodedPassword,
boolean optionallyEncrypted) |
static String |
decryptPassword(String encrypted)
Deprecated.
|
protected String |
decryptPasswordInternal(String encrypted) |
static String |
decryptPasswordOptionallyEncrypted(String password)
Deprecated.
- Use the instance method through Encr instead of this directly
|
protected String |
decryptPasswordOptionallyEncryptedInternal(String password)
Decrypts a password if it contains the prefix "Encrypted "
|
String |
encode(String rawPassword) |
String |
encode(String rawPassword,
boolean includePrefix) |
static String |
encryptPassword(String password)
Deprecated.
- use the instance method through Encr instead of this directly
|
static String |
encryptPasswordIfNotUsingVariables(String password)
Deprecated.
- Use the instance method through Encr instead of this directly
|
protected String |
encryptPasswordIfNotUsingVariablesInternal(String password)
Encrypt the password, but only if the password doesn't contain any variables.
|
protected String |
encryptPasswordInternal(String password) |
String[] |
getPrefixes() |
protected String |
getSeed() |
void |
init() |
public static final String PASSWORD_ENCRYPTED_PREFIX
public void init() throws org.pentaho.support.encryption.PasswordEncoderException
init
in interface org.pentaho.di.core.encryption.TwoWayPasswordEncoderInterface
org.pentaho.support.encryption.PasswordEncoderException
public String encode(String rawPassword)
encode
in interface org.pentaho.di.core.encryption.TwoWayPasswordEncoderInterface
public String encode(String rawPassword, boolean includePrefix)
encode
in interface org.pentaho.di.core.encryption.TwoWayPasswordEncoderInterface
public String decode(String encodedPassword)
decode
in interface org.pentaho.di.core.encryption.TwoWayPasswordEncoderInterface
public String decode(String encodedPassword, boolean optionallyEncrypted)
decode
in interface org.pentaho.di.core.encryption.TwoWayPasswordEncoderInterface
protected String getSeed()
public String[] getPrefixes()
getPrefixes
in interface org.pentaho.di.core.encryption.TwoWayPasswordEncoderInterface
protected final String encryptPasswordIfNotUsingVariablesInternal(String password)
password
- The password to encryptprotected final String decryptPasswordOptionallyEncryptedInternal(String password)
password
- The encrypted passwordpublic static final String encryptPasswordIfNotUsingVariables(String password)
password
- The password to encryptpublic static final String decryptPasswordOptionallyEncrypted(String password)
password
- The encrypted passwordpublic static final String encryptPassword(String password)
password
- Copyright © 2020 Hitachi Vantara. All rights reserved.