Package org.pentaho.di.core.encryption
Class KettleTwoWayPasswordEncoder
java.lang.Object
org.pentaho.di.core.encryption.KettleTwoWayPasswordEncoder
- All Implemented Interfaces:
org.pentaho.di.core.encryption.TwoWayPasswordEncoderInterface
public class KettleTwoWayPasswordEncoder
extends Object
implements org.pentaho.di.core.encryption.TwoWayPasswordEncoderInterface
This class handles basic encryption of passwords in Kettle. Note that it's not really encryption, it's more
obfuscation. Passwords are difficult to read, not impossible.
- Since:
- 17-12-2003
- Author:
- Matt
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The word that is put before a password to indicate an encrypted form. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final String
decryptPassword
(String encrypted) Deprecated.protected String
decryptPasswordInternal
(String encrypted) static final String
decryptPasswordOptionallyEncrypted
(String password) Deprecated.- Use the instance method through Encr instead of this directlyprotected final String
Decrypts a password if it contains the prefix "Encrypted "static final String
encryptPassword
(String password) Deprecated.- use the instance method through Encr instead of this directlystatic final String
encryptPasswordIfNotUsingVariables
(String password) Deprecated.- Use the instance method through Encr instead of this directlyprotected final String
Encrypt the password, but only if the password doesn't contain any variables.protected String
encryptPasswordInternal
(String password) String[]
protected String
getSeed()
void
init()
-
Field Details
-
PASSWORD_ENCRYPTED_PREFIX
The word that is put before a password to indicate an encrypted form. If this word is not present, the password is considered to be NOT encrypted- See Also:
-
-
Constructor Details
-
KettleTwoWayPasswordEncoder
public KettleTwoWayPasswordEncoder()
-
-
Method Details
-
init
public void init() throws org.pentaho.support.encryption.PasswordEncoderException- Specified by:
init
in interfaceorg.pentaho.di.core.encryption.TwoWayPasswordEncoderInterface
- Throws:
org.pentaho.support.encryption.PasswordEncoderException
-
encode
- Specified by:
encode
in interfaceorg.pentaho.di.core.encryption.TwoWayPasswordEncoderInterface
-
encode
- Specified by:
encode
in interfaceorg.pentaho.di.core.encryption.TwoWayPasswordEncoderInterface
-
decode
- Specified by:
decode
in interfaceorg.pentaho.di.core.encryption.TwoWayPasswordEncoderInterface
-
decode
- Specified by:
decode
in interfaceorg.pentaho.di.core.encryption.TwoWayPasswordEncoderInterface
-
encryptPasswordInternal
-
decryptPasswordInternal
-
getSeed
-
getPrefixes
- Specified by:
getPrefixes
in interfaceorg.pentaho.di.core.encryption.TwoWayPasswordEncoderInterface
-
encryptPasswordIfNotUsingVariablesInternal
Encrypt the password, but only if the password doesn't contain any variables.- Parameters:
password
- The password to encrypt- Returns:
- The encrypted password or the
-
decryptPasswordOptionallyEncryptedInternal
Decrypts a password if it contains the prefix "Encrypted "- Parameters:
password
- The encrypted password- Returns:
- The decrypted password or the original value if the password doesn't start with "Encrypted "
-
encryptPasswordIfNotUsingVariables
Deprecated.- Use the instance method through Encr instead of this directlyEncrypt the password, but only if the password doesn't contain any variables.- Parameters:
password
- The password to encrypt- Returns:
- The encrypted password or the
-
decryptPasswordOptionallyEncrypted
Deprecated.- Use the instance method through Encr instead of this directlyDecrypts a password if it contains the prefix "Encrypted "- Parameters:
password
- The encrypted password- Returns:
- The decrypted password or the original value if the password doesn't start with "Encrypted "
-
encryptPassword
Deprecated.- use the instance method through Encr instead of this directlyDeprecared - use the instance method instead- Parameters:
password
-- Returns:
- encrypted password
-
decryptPassword
Deprecated.Deprecated - use Encr instead of this directly- Parameters:
encrypted
-- Returns:
- decrypted password
-