com.ca.jcs.crypto
Class CryptoUtil

java.lang.Object
  extended by com.ca.jcs.crypto.CryptoUtil

public class CryptoUtil
extends Object

Some utilities to assist with dealing with encryption and encrypted values.


Constructor Summary
CryptoUtil()
           
 
Method Summary
static Attribute copyAttributeDecryptValues(CryptoService cryptoService, String algorithm, String newId, Attribute attr)
           
static Attribute copyAttributeEncryptValues(CryptoService cryptoService, String algorithm, String newId, Attribute attr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CryptoUtil

public CryptoUtil()
Method Detail

copyAttributeEncryptValues

public static Attribute copyAttributeEncryptValues(CryptoService cryptoService,
                                                   String algorithm,
                                                   String newId,
                                                   Attribute attr)
Returns:
Copy of attr with a new id and encrypted attribute values (refer to very similar implementation in LdapUtil.copyAttribute(java.lang.String, javax.naming.directory.Attribute)).

copyAttributeDecryptValues

public static Attribute copyAttributeDecryptValues(CryptoService cryptoService,
                                                   String algorithm,
                                                   String newId,
                                                   Attribute attr)
Returns:
Copy of attr with a new id and decrypted attribute values (refer to very similar implementation in LdapUtil.copyAttribute(java.lang.String, javax.naming.directory.Attribute)).


Created 2011-07-14 13:27 EST