org.mule.api
Interface EncryptionStrategy

All Superinterfaces:
Initialisable, NamedObject
All Known Implementing Classes:
AbstractJCEEncryptionStrategy, AbstractNamedEncryptionStrategy, KeyBasedEncryptionStrategy, MockEncryptionStrategy, PasswordBasedEncryptionStrategy, SecretKeyEncryptionStrategy

public interface EncryptionStrategy
extends Initialisable, NamedObject

EncryptionStrategy 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.


Field Summary
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Method Summary
 byte[] decrypt(byte[] data, Object info)
           
 InputStream decrypt(InputStream data, Object info)
           
 byte[] encrypt(byte[] data, Object info)
           
 InputStream encrypt(InputStream data, Object info)
           
 
Methods inherited from interface org.mule.api.lifecycle.Initialisable
initialise
 
Methods inherited from interface org.mule.api.NamedObject
getName
 

Method Detail

encrypt

InputStream encrypt(InputStream data,
                    Object info)
                    throws CryptoFailureException
Throws:
CryptoFailureException

decrypt

InputStream decrypt(InputStream data,
                    Object info)
                    throws CryptoFailureException
Throws:
CryptoFailureException

encrypt

byte[] encrypt(byte[] data,
               Object info)
               throws CryptoFailureException
Throws:
CryptoFailureException

decrypt

byte[] decrypt(byte[] data,
               Object info)
               throws CryptoFailureException
Throws:
CryptoFailureException


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.