|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.core.encryption.Encr
public class Encr
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.
Field Summary | |
---|---|
static String |
PASSWORD_ENCRYPTED_PREFIX
The word that is put before a password to indicate an encrypted form. |
Constructor Summary | |
---|---|
Encr()
|
Method Summary | |
---|---|
String |
buildSignature(String mac,
String username,
String company,
String products)
|
static boolean |
checkSignatureShort(String signature,
String verify)
|
static String |
decryptPassword(String encrypted)
|
static String |
decryptPasswordOptionallyEncrypted(String password)
Decrypts a password if it contains the prefix "Encrypted " |
static String |
encryptPassword(String password)
|
static String |
encryptPasswordIfNotUsingVariables(String password)
Encrypt the password, but only if the password doesn't contain any variables. |
static String |
getSignatureShort(String signature)
|
boolean |
init()
|
static void |
main(String[] args)
Create an encrypted password |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PASSWORD_ENCRYPTED_PREFIX
Constructor Detail |
---|
public Encr()
Method Detail |
---|
public boolean init()
public String buildSignature(String mac, String username, String company, String products)
public static final boolean checkSignatureShort(String signature, String verify)
public static final String getSignatureShort(String signature)
public static final String encryptPassword(String password)
public static final String decryptPassword(String encrypted)
public static final String encryptPasswordIfNotUsingVariables(String password)
password
- The password to encrypt
public static final String decryptPasswordOptionallyEncrypted(String password)
password
- The encrypted password
public static void main(String[] args)
args
- the password to encrypt
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |