Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mule.transformer.encryption
Class AbstractEncryptionTransformer

    java.lang.Object
      org.mule.transformer.AbstractTransformer
          org.mule.transformer.encryption.AbstractEncryptionTransformer

All Implemented Interfaces:
  MuleContextAware, MuleContextNotificationListener<MuleContextNotification>, ServerNotificationListener<MuleContextNotification>, Disposable, Initialisable, NamedObject, MessageProcessor, Transformer, EndpointAware

Direct Known Subclasses:
  DecryptionTransformer, EncryptionTransformer

    public abstract class AbstractEncryptionTransformer

extends AbstractTransformer

`EncryptionTransformer` will transform an array of bytes or string into an encrypted array of bytes

Field Summary

Fields inherited from class org.mule.transformer.AbstractTransformer
`encoding, endpoint, logger, mimeType, MULE_MESSAGE_DATA_TYPE, muleContext, name, returnType, sourceTypes`

Fields inherited from interface org.mule.api.lifecycle.Initialisable
`PHASE_NAME`

Fields inherited from interface org.mule.api.lifecycle.Disposable
`PHASE_NAME`

Constructor Summary
`AbstractEncryptionTransformer()`

Method Summary
`Object` | `clone()`
`Object` | `doTransform(Object src, String outputEncoding)`
`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)`

Methods inherited from class org.mule.transformer.AbstractTransformer
`checkReturnClass, dispose, generateTransformerName, getEncoding, getEncoding, getEndpoint, getMimeType, getName, getReturnClass, getReturnDataType, getSourceDataTypes, getSourceTypes, isAcceptNull, isAllowNullReturn, isConsumed, isIgnoreBadInput, isSourceDataTypeSupported, isSourceDataTypeSupported, isSourceTypeSupported, isSourceTypeSupported, onNotification, process, registerSourceType, registerSourceType, setAllowNullReturn, setEncoding, setEndpoint, setIgnoreBadInput, setMimeType, setMuleContext, setName, setReturnClass, setReturnDataType, toString, transform, transform, unregisterSourceType, unregisterSourceType`

Methods inherited from class java.lang.Object
`equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### AbstractEncryptionTransformer

    public AbstractEncryptionTransformer()

Method Detail

### clone

    public Object clone()
                 throws CloneNotSupportedException

  Overrides:
    `clone` in class `Object`
  Throws:
    `CloneNotSupportedException`

### doTransform

    public Object doTransform(Object src,
                              String outputEncoding)
                       throws TransformerException

  Specified by:
    `doTransform` in class `AbstractTransformer`
  Throws:
    `TransformerException`

### getTransformedBytes

    protected abstract byte[] getTransformedBytes(byte[] buffer)
                                           throws CryptoFailureException

  Throws:
    `CryptoFailureException`

### initialise

    public void initialise()
                    throws InitialisationException

  Template method were deriving classes can do any initialisation after the properties have been set on this transformer

  Specified by:
    `initialise` in interface `Initialisable`
  Overrides:
    `initialise` in class `AbstractTransformer`
  Throws:
    `InitialisationException`
    `RecoverableException` - if an error occurs that can be recovered from

### getStrategy

    public EncryptionStrategy getStrategy()

### setStrategy

    public void setStrategy(EncryptionStrategy strategy)

### getStrategyName

    public String getStrategyName()

### setStrategyName

    public void setStrategyName(String strategyName)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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