public abstract class AbstractSecurityFilter extends Object implements MuleContextAware, SecurityFilter
AbstractSecurityFilter provides basic initialisation for
all security filters, namely configuring the SecurityManager for this instance| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
protected MuleContext |
muleContext |
protected SecurityManager |
securityManager |
PHASE_NAME| Constructor and Description |
|---|
AbstractSecurityFilter() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
doFilter(MuleEvent event) |
protected void |
doInitialise() |
SecurityManager |
getSecurityManager() |
String |
getSecurityProviders() |
void |
initialise()
Method used to perform any initialisation work.
|
void |
setMuleContext(MuleContext context) |
void |
setSecurityManager(SecurityManager manager) |
void |
setSecurityProviders(String providers) |
protected void |
updatePayload(MuleMessage message,
Object payload,
MuleEvent event) |
protected transient org.apache.commons.logging.Log logger
protected SecurityManager securityManager
protected MuleContext muleContext
public void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarepublic final void initialise()
throws InitialisationException
InitialisableInitialisationException 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 InitialisableInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered fromprotected void doInitialise()
throws InitialisationException
InitialisationExceptionpublic void setSecurityManager(SecurityManager manager)
setSecurityManager in interface SecurityFiltermanager - public SecurityManager getSecurityManager()
getSecurityManager in interface SecurityFilterpublic String getSecurityProviders()
getSecurityProviders in interface SecurityFilterpublic void setSecurityProviders(String providers)
setSecurityProviders in interface SecurityFilterpublic abstract void doFilter(MuleEvent event) throws SecurityException, UnknownAuthenticationTypeException, CryptoFailureException, SecurityProviderNotFoundException, EncryptionStrategyNotFoundException, InitialisationException
protected void updatePayload(MuleMessage message, Object payload, MuleEvent event) throws MuleException
MuleExceptionCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.