cgl.narada.service.security.securityprovider
Class EncryptDecryptUtil
java.lang.Object
cgl.narada.service.security.securityprovider.EncryptDecryptUtil
public class EncryptDecryptUtil
- extends Object
Created on Apr 18, 2005
|
Method Summary |
static byte[] |
decrypt(SecretKey key,
byte[] data)
Decrypt data using specified key |
static byte[] |
encrypt(SecretKey key,
byte[] data)
Encrypt data using specified key |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EncryptDecryptUtil
public EncryptDecryptUtil()
encrypt
public static byte[] encrypt(SecretKey key,
byte[] data)
- Encrypt data using specified key
- Parameters:
key - data -
- Returns:
decrypt
public static byte[] decrypt(SecretKey key,
byte[] data)
- Decrypt data using specified key
- Parameters:
key - data -
- Returns:
For comments and suggestions please send
e-mail to
The NaradaBrokering Project