Class EncryptionHelper
java.lang.Object
ai.mindconnect.common.util.encryption.EncryptionHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUnencryptedPassword(String password) static EncryptionHelperReturns an instance that resolvesplain:prefixes but cannot decryptenc:values.Returns the plaintext value.
-
Field Details
-
PLAIN
- See Also:
-
ENC
- See Also:
-
-
Constructor Details
-
EncryptionHelper
public EncryptionHelper()
-
-
Method Details
-
noEncryption
Returns an instance that resolvesplain:prefixes but cannot decryptenc:values. -
resolve
Returns the plaintext value. Acceptsplain:…,enc:…, or bare plaintext (no prefix) for backwards compatibility with configs saved before encryption was introduced. -
getUnencryptedPassword
-
encrypt
- Throws:
Exception
-
decrypt
- Throws:
Exception
-