org.mule.extras.pgp
Class KeyBasedEncryptionStrategy
java.lang.Object
org.mule.extras.pgp.KeyBasedEncryptionStrategy
- All Implemented Interfaces:
- org.mule.umo.lifecycle.Initialisable, org.mule.umo.UMOEncryptionStrategy
- public class KeyBasedEncryptionStrategy
- extends Object
- implements org.mule.umo.UMOEncryptionStrategy
- Author:
- ariva
|
Field Summary |
protected static org.apache.commons.logging.Log |
logger
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static transient org.apache.commons.logging.Log logger
KeyBasedEncryptionStrategy
public KeyBasedEncryptionStrategy()
encrypt
public byte[] encrypt(byte[] data,
Object cryptInfo)
throws org.mule.umo.security.CryptoFailureException
- Specified by:
encrypt in interface org.mule.umo.UMOEncryptionStrategy
- Throws:
org.mule.umo.security.CryptoFailureException
decrypt
public byte[] decrypt(byte[] data,
Object cryptInfo)
throws org.mule.umo.security.CryptoFailureException
- Specified by:
decrypt in interface org.mule.umo.UMOEncryptionStrategy
- Throws:
org.mule.umo.security.CryptoFailureException
initialise
public void initialise()
throws org.mule.umo.lifecycle.InitialisationException
- Specified by:
initialise in interface org.mule.umo.lifecycle.Initialisable
- Throws:
org.mule.umo.lifecycle.InitialisationException
getKeyManager
public PGPKeyRing getKeyManager()
setKeyManager
public void setKeyManager(PGPKeyRing keyManager)
Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.