public class MockEncryptionStrategy extends Named implements EncryptionStrategy
PHASE_NAME
Constructor and Description |
---|
MockEncryptionStrategy() |
Modifier and Type | Method and Description |
---|---|
byte[] |
decrypt(byte[] data,
Object info) |
InputStream |
decrypt(InputStream data,
Object info) |
byte[] |
encrypt(byte[] data,
Object info) |
InputStream |
encrypt(InputStream data,
Object info) |
void |
initialise()
Method used to perform any initialisation work.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public byte[] encrypt(byte[] data, Object info) throws CryptoFailureException
encrypt
in interface EncryptionStrategy
CryptoFailureException
public byte[] decrypt(byte[] data, Object info) throws CryptoFailureException
decrypt
in interface EncryptionStrategy
CryptoFailureException
public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic InputStream decrypt(InputStream data, Object info) throws CryptoFailureException
decrypt
in interface EncryptionStrategy
CryptoFailureException
public InputStream encrypt(InputStream data, Object info) throws CryptoFailureException
encrypt
in interface EncryptionStrategy
CryptoFailureException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.