Modifier and Type | Class and Description |
---|---|
static interface |
JolokiaCipher.KeyHolder |
Modifier and Type | Field and Description |
---|---|
static String |
JOLOKIA_CYPHER_PASSWORD |
Constructor and Description |
---|
JolokiaCipher() |
JolokiaCipher(JolokiaCipher.KeyHolder pKeyHolder) |
Modifier and Type | Method and Description |
---|---|
String |
decrypt(String pEncryptedText)
Decrypt a password encrypted with
encrypt(String) |
String |
encrypt(String pText)
Encrypt a string with a password.
|
public static final String JOLOKIA_CYPHER_PASSWORD
public JolokiaCipher() throws GeneralSecurityException
GeneralSecurityException
public JolokiaCipher(JolokiaCipher.KeyHolder pKeyHolder) throws NoSuchAlgorithmException
NoSuchAlgorithmException
public String encrypt(String pText) throws GeneralSecurityException
pText
- text to encodeGeneralSecurityException
public String decrypt(String pEncryptedText) throws GeneralSecurityException
encrypt(String)
pEncryptedText
- encrypted textGeneralSecurityException
- when decryption failsCopyright © 2016. All rights reserved.