org.mule.umo
Interface UMOEncryptionStrategy

All Superinterfaces:
Initialisable
All Known Implementing Classes:
KeyBasedEncryptionStrategy, PasswordBasedEncryptionStrategy

public interface UMOEncryptionStrategy
extends Initialisable

UMOEncryptionStrategy can be used to provide different types of Encryption strategy objects. These can be configured with different information relivant with the encryption method being used. for example for Password Based Encryption (PBE) a password, salt, iteration count and algorithm may be set on the strategy.

Version:
$Revision: 1.3 $
Author:
Ross Mason

Method Summary
 byte[] decrypt(byte[] data, java.lang.Object info)
           
 byte[] encrypt(byte[] data, java.lang.Object info)
           
 
Methods inherited from interface org.mule.umo.lifecycle.Initialisable
initialise
 

Method Detail

encrypt

public byte[] encrypt(byte[] data,
                      java.lang.Object info)
               throws CryptoFailureException
Throws:
CryptoFailureException

decrypt

public byte[] decrypt(byte[] data,
                      java.lang.Object info)
               throws CryptoFailureException
Throws:
CryptoFailureException


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