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
FieldsModifier and TypeFieldDescriptionstatic final StringThe word that is put before a password to indicate an encrypted form. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final StringdecryptPassword(String encrypted) Deprecated.protected StringdecryptPasswordInternal(String encrypted) static final StringdecryptPasswordOptionallyEncrypted(String password) Deprecated.- Use the instance method through Encr instead of this directlyprotected final StringDecrypts a password if it contains the prefix "Encrypted "static final StringencryptPassword(String password) Deprecated.- use the instance method through Encr instead of this directlystatic final StringencryptPasswordIfNotUsingVariables(String password) Deprecated.- Use the instance method through Encr instead of this directlyprotected final StringEncrypt the password, but only if the password doesn't contain any variables.protected StringencryptPasswordInternal(String password) String[]protected StringgetSeed()voidinit()
-
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:
initin interfaceorg.pentaho.di.core.encryption.TwoWayPasswordEncoderInterface- Throws:
org.pentaho.support.encryption.PasswordEncoderException
-
encode
- Specified by:
encodein interfaceorg.pentaho.di.core.encryption.TwoWayPasswordEncoderInterface
-
encode
- Specified by:
encodein interfaceorg.pentaho.di.core.encryption.TwoWayPasswordEncoderInterface
-
decode
- Specified by:
decodein interfaceorg.pentaho.di.core.encryption.TwoWayPasswordEncoderInterface
-
decode
- Specified by:
decodein interfaceorg.pentaho.di.core.encryption.TwoWayPasswordEncoderInterface
-
encryptPasswordInternal
-
decryptPasswordInternal
-
getSeed
-
getPrefixes
- Specified by:
getPrefixesin 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
-