cgl.narada.service.security.securityprovider
Class EncryptDecryptUtil

java.lang.Object
  extended by cgl.narada.service.security.securityprovider.EncryptDecryptUtil

public class EncryptDecryptUtil
extends Object

Created on Apr 18, 2005


Constructor Summary
EncryptDecryptUtil()
           
 
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
 

Constructor Detail

EncryptDecryptUtil

public EncryptDecryptUtil()
Method Detail

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