org.mule.extras.pgp
Class KeyBasedEncryptionStrategy

java.lang.Object
  extended byorg.mule.extras.pgp.KeyBasedEncryptionStrategy
All Implemented Interfaces:
Initialisable, UMOEncryptionStrategy

public class KeyBasedEncryptionStrategy
extends java.lang.Object
implements UMOEncryptionStrategy

Author:
ariva

Field Summary
protected static Log logger
           
 
Constructor Summary
KeyBasedEncryptionStrategy()
           
 
Method Summary
 byte[] decrypt(byte[] data, java.lang.Object cryptInfo)
           
 byte[] encrypt(byte[] data, java.lang.Object cryptInfo)
           
 PGPKeyRing getKeyManager()
           
 void initialise()
          Method used to perform any initialisation work.
 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 Log logger
Constructor Detail

KeyBasedEncryptionStrategy

public KeyBasedEncryptionStrategy()
Method Detail

encrypt

public byte[] encrypt(byte[] data,
                      java.lang.Object cryptInfo)
               throws CryptoFailureException
Specified by:
encrypt in interface UMOEncryptionStrategy
Throws:
CryptoFailureException

decrypt

public byte[] decrypt(byte[] data,
                      java.lang.Object cryptInfo)
               throws CryptoFailureException
Specified by:
decrypt in interface UMOEncryptionStrategy
Throws:
CryptoFailureException

initialise

public void initialise()
                throws InitialisationException
Description copied from interface: Initialisable
Method used to perform any initialisation work. If a fatal error occurs during initialisation an InitialisationException should be thrown, causing the Mule instance to shutdown. If the error is recoverable, say by retrying to connect, a RecoverableException should be thrown. There is no guarantee that by throwing a Recoverable exception that the Mule instance will not shut down.

Specified by:
initialise in interface Initialisable
Throws:
InitialisationException - if a fatal error occurs causing the Mule instance to shutdown

getKeyManager

public PGPKeyRing getKeyManager()

setKeyManager

public void setKeyManager(PGPKeyRing keyManager)


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.