org.mule.extras.pgp
Class KeyBasedEncryptionStrategy

java.lang.Object
  extended byorg.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
           
 
Constructor Summary
KeyBasedEncryptionStrategy()
           
 
Method Summary
 byte[] decrypt(byte[] data, Object cryptInfo)
           
 byte[] encrypt(byte[] data, Object cryptInfo)
           
 PGPKeyRing getKeyManager()
           
 void initialise()
           
 void setKeyManager(PGPKeyRing keyManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static transient org.apache.commons.logging.Log logger
Constructor Detail

KeyBasedEncryptionStrategy

public KeyBasedEncryptionStrategy()
Method Detail

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.