Package com.xebialabs.deployit.cli.util
Class PasswordEncrypter
- java.lang.Object
-
- com.xebialabs.deployit.cli.util.PasswordEncrypter
-
public class PasswordEncrypter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static javax.crypto.SecretKeyPASSWORD_ENCRYPTION_KEY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringensureDecrypted(java.lang.String text)java.lang.StringensureEncrypted(java.lang.String text)static PasswordEncryptergetInstance()static voidinit()booleanisEncoded(java.lang.String text)booleanisEncrypted(java.lang.String text)
-
-
-
Method Detail
-
init
public static void init()
-
getInstance
public static PasswordEncrypter getInstance()
-
isEncoded
public boolean isEncoded(java.lang.String text)
-
isEncrypted
public boolean isEncrypted(java.lang.String text)
-
ensureEncrypted
public java.lang.String ensureEncrypted(java.lang.String text)
-
ensureDecrypted
public java.lang.String ensureDecrypted(java.lang.String text)
-
-