com.ca.jcs.crypto
Class CryptoUtil
java.lang.Object
com.ca.jcs.crypto.CryptoUtil
public class CryptoUtil
- extends Object
Some utilities to assist with dealing with encryption and encrypted
values.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CryptoUtil
public CryptoUtil()
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