public abstract class AbstractEncryptionTransformer extends AbstractTransformer
EncryptionTransformer
will transform an array of bytes or string
into an encrypted array of bytesDEFAULT_TRUNCATE_LENGTH, endpoint, logger, name, returnClass, sourceTypes
PHASE_NAME
Constructor and Description |
---|
AbstractEncryptionTransformer() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
Object |
doTransform(Object src,
String encoding) |
EncryptionStrategy |
getStrategy() |
String |
getStrategyName() |
protected abstract byte[] |
getTransformedBytes(byte[] buffer) |
void |
initialise()
Template method were deriving classes can do any initialisation after the
properties have been set on this transformer
|
void |
setStrategy(EncryptionStrategy strategy) |
void |
setStrategyName(String strategyName) |
checkReturnClass, generateTransformerName, getEndpoint, getName, getReturnClass, getSourceTypes, isAcceptNull, isConsumed, isIgnoreBadInput, isSourceTypeSupported, isSourceTypeSupported, registerSourceType, setEndpoint, setIgnoreBadInput, setName, setReturnClass, toString, transform, unregisterSourceType
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public Object doTransform(Object src, String encoding) throws TransformerException
doTransform
in class AbstractTransformer
TransformerException
protected abstract byte[] getTransformedBytes(byte[] buffer) throws CryptoFailureException
CryptoFailureException
public void initialise() throws InitialisationException
initialise
in interface Initialisable
initialise
in class AbstractTransformer
InitialisationException
RecoverableException
- if an error occurs that can be recovered frompublic EncryptionStrategy getStrategy()
public void setStrategy(EncryptionStrategy strategy)
public String getStrategyName()
public void setStrategyName(String strategyName)
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.