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, sourceTypesPHASE_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, unregisterSourceTypepublic Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic Object doTransform(Object src, String encoding) throws TransformerException
doTransform in class AbstractTransformerTransformerExceptionprotected abstract byte[] getTransformedBytes(byte[] buffer)
throws CryptoFailureException
CryptoFailureExceptionpublic void initialise()
throws InitialisationException
initialise in interface Initialisableinitialise in class AbstractTransformerInitialisationExceptionRecoverableException - 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-2012 MuleSource, Inc.. All Rights Reserved.