|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.tck.security.Named
org.mule.tck.security.MockEncryptionStrategy
public class MockEncryptionStrategy
Empty mock for tests
Field Summary |
---|
Fields inherited from interface org.mule.api.lifecycle.Initialisable |
---|
PHASE_NAME |
Constructor Summary | |
---|---|
MockEncryptionStrategy()
|
Method Summary | |
---|---|
byte[] |
decrypt(byte[] data,
java.lang.Object info)
|
byte[] |
encrypt(byte[] data,
java.lang.Object info)
|
void |
initialise()
Method used to perform any initialisation work. |
Methods inherited from class org.mule.tck.security.Named |
---|
getName, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.mule.api.EncryptionStrategy |
---|
getName |
Constructor Detail |
---|
public MockEncryptionStrategy()
Method Detail |
---|
public byte[] encrypt(byte[] data, java.lang.Object info) throws CryptoFailureException
encrypt
in interface EncryptionStrategy
CryptoFailureException
public byte[] decrypt(byte[] data, java.lang.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 shutdown
RecoverableException
- if an error occurs that can be recovered from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |