| 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
GeneralSecurityExceptionpublic JolokiaCipher(JolokiaCipher.KeyHolder pKeyHolder) throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic String encrypt(String pText) throws GeneralSecurityException
pText - text to encodeGeneralSecurityExceptionpublic String decrypt(String pEncryptedText) throws GeneralSecurityException
encrypt(String)pEncryptedText - encrypted textGeneralSecurityException - when decryption failsCopyright © 2017. All rights reserved.