org.mule.security
Class AbstractNamedEncryptionStrategy

java.lang.Object
  extended by org.mule.security.AbstractNamedEncryptionStrategy
All Implemented Interfaces:
EncryptionStrategy, Initialisable, NamedObject
Direct Known Subclasses:
AbstractJCEEncryptionStrategy, KeyBasedEncryptionStrategy

public abstract class AbstractNamedEncryptionStrategy
extends Object
implements EncryptionStrategy


Field Summary
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Constructor Summary
AbstractNamedEncryptionStrategy()
           
 
Method Summary
 byte[] decrypt(byte[] data, Object info)
           
 byte[] encrypt(byte[] data, Object info)
           
 String getName()
          Gets the name of the object
 void setName(String name)
           
 
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
decrypt, encrypt
 
Methods inherited from interface org.mule.api.lifecycle.Initialisable
initialise
 

Constructor Detail

AbstractNamedEncryptionStrategy

public AbstractNamedEncryptionStrategy()
Method Detail

getName

public String getName()
Description copied from interface: NamedObject
Gets the name of the object

Specified by:
getName in interface NamedObject
Returns:
the name of the object

setName

public void setName(String name)

encrypt

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

decrypt

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


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