public class KeyStoreUtil extends Object implements com.sun.jbi.security.KeyStoreUtil
| Constructor and Description |
|---|
KeyStoreUtil() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] cipherText)
Decrypts a message using a default key
|
String |
decrypt(String base64EncodedCipherText)
Decrypts a message using the key identified by keyName.
|
byte[] |
encrypt(byte[] clearText)
Encrypts a message using a default key.
|
String |
encrypt(String clearText)
Encrypts a message using a default key.
|
public byte[] encrypt(byte[] clearText)
throws KeyStoreException
encrypt in interface com.sun.jbi.security.KeyStoreUtilclearText - the byte array that will be encryptedKeyStoreException - if any error occurs retrieving the key to be
usedpublic byte[] decrypt(byte[] cipherText)
throws KeyStoreException
decrypt in interface com.sun.jbi.security.KeyStoreUtilcipherText - the byte array with the encrypted dataKeyStoreException - if any error occurs retrieving the key to be
usedpublic String encrypt(String clearText) throws KeyStoreException
encrypt in interface com.sun.jbi.security.KeyStoreUtilclearText - a String representing the message to be encryptedKeyStoreException - if any error occurs retrieving the key to be
usedpublic String decrypt(String base64EncodedCipherText) throws KeyStoreException
decrypt in interface com.sun.jbi.security.KeyStoreUtilbase64EncodedCipherText - a Base-64 Encoded stringKeyStoreException - if any error occurs retrieving the key to be
usedCopyright © 2011-2015 OpenESB Community. All Rights Reserved.