org.mule.security
Class MockEncryptionStrategy

java.lang.Object
  extended by org.mule.security.Named
      extended by org.mule.security.MockEncryptionStrategy
All Implemented Interfaces:
org.mule.api.EncryptionStrategy, org.mule.api.lifecycle.Initialisable

public class MockEncryptionStrategy
extends Named
implements org.mule.api.EncryptionStrategy

Empty mock for tests


Field Summary
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Constructor Summary
MockEncryptionStrategy()
           
 
Method Summary
 byte[] decrypt(byte[] data, Object info)
           
 byte[] encrypt(byte[] data, Object info)
           
 void initialise()
           
 
Methods inherited from class org.mule.security.Named
getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mule.api.EncryptionStrategy
getName
 

Constructor Detail

MockEncryptionStrategy

public MockEncryptionStrategy()
Method Detail

encrypt

public byte[] encrypt(byte[] data,
                      Object info)
               throws org.mule.api.security.CryptoFailureException
Specified by:
encrypt in interface org.mule.api.EncryptionStrategy
Throws:
org.mule.api.security.CryptoFailureException

decrypt

public byte[] decrypt(byte[] data,
                      Object info)
               throws org.mule.api.security.CryptoFailureException
Specified by:
decrypt in interface org.mule.api.EncryptionStrategy
Throws:
org.mule.api.security.CryptoFailureException

initialise

public void initialise()
                throws org.mule.api.lifecycle.InitialisationException
Specified by:
initialise in interface org.mule.api.lifecycle.Initialisable
Throws:
org.mule.api.lifecycle.InitialisationException


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.