public abstract class AbstractSecurityFilter extends Object implements MuleContextAware, SecurityFilter
AbstractSecurityFilter
provides basic initialisation for
all security filters, namely configuring the SecurityManager for this instanceModifier and Type | Field and Description |
---|---|
protected 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 Log logger
protected SecurityManager securityManager
protected MuleContext muleContext
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
public final 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 fromprotected void doInitialise() throws InitialisationException
InitialisationException
public void setSecurityManager(SecurityManager manager)
setSecurityManager
in interface SecurityFilter
manager
- public SecurityManager getSecurityManager()
getSecurityManager
in interface SecurityFilter
public String getSecurityProviders()
getSecurityProviders
in interface SecurityFilter
public void setSecurityProviders(String providers)
setSecurityProviders
in interface SecurityFilter
public abstract void doFilter(MuleEvent event) throws SecurityException, UnknownAuthenticationTypeException, CryptoFailureException, SecurityProviderNotFoundException, EncryptionStrategyNotFoundException, InitialisationException
protected void updatePayload(MuleMessage message, Object payload, MuleEvent event) throws MuleException
MuleException
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.