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, Initialisable, NamedObject, BaseTransformer, Transformer

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
`DEFAULT_TRUNCATE_LENGTH, endpoint, logger, muleContext, name, returnClass, sourceTypes`

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

Constructor Summary
`AbstractEncryptionTransformer()`

Method Summary
`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)`

Methods inherited from class org.mule.transformer.AbstractTransformer
`checkReturnClass, generateTransformerName, getEncoding, getEndpoint, getName, getReturnClass, getSourceTypes, isAcceptNull, isConsumed, isIgnoreBadInput, isSourceTypeSupported, isSourceTypeSupported, registerSourceType, setEndpoint, setIgnoreBadInput, setMuleContext, setName, setReturnClass, toString, transform, transform, 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 encoding)
                       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-2009 MuleSource, Inc.. All Rights Reserved.