public class KeyBasedEncryptionStrategy extends AbstractNamedEncryptionStrategy
Modifier and Type | Field and Description |
---|---|
protected static Log |
logger
logger used by this class
|
PHASE_NAME
Constructor and Description |
---|
KeyBasedEncryptionStrategy() |
Modifier and Type | Method and Description |
---|---|
InputStream |
decrypt(InputStream data,
Object cryptInfo) |
InputStream |
encrypt(InputStream data,
Object cryptInfo) |
CredentialsAccessor |
getCredentialsAccessor() |
PGPKeyRing |
getKeyManager() |
void |
initialise()
Method used to perform any initialisation work.
|
boolean |
isCheckKeyExpirity() |
void |
setCheckKeyExpirity(boolean checkKeyExpirity) |
void |
setCredentialsAccessor(CredentialsAccessor credentialsAccessor) |
void |
setKeyManager(PGPKeyRing keyManager) |
decrypt, encrypt, getName, setName
protected static final Log logger
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.InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic InputStream encrypt(InputStream data, Object cryptInfo) throws CryptoFailureException
CryptoFailureException
public InputStream decrypt(InputStream data, Object cryptInfo) throws CryptoFailureException
CryptoFailureException
public PGPKeyRing getKeyManager()
public void setKeyManager(PGPKeyRing keyManager)
public CredentialsAccessor getCredentialsAccessor()
public void setCredentialsAccessor(CredentialsAccessor credentialsAccessor)
public boolean isCheckKeyExpirity()
public void setCheckKeyExpirity(boolean checkKeyExpirity)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.