org.mule.security
Class AbstractSecurityFilter
java.lang.Object
org.mule.security.AbstractSecurityFilter
- All Implemented Interfaces:
- MuleContextAware, Initialisable, SecurityFilter
- Direct Known Subclasses:
- AbstractAuthenticationFilter, AuthorizationFilter
public abstract class AbstractSecurityFilter
- extends Object
- implements MuleContextAware, SecurityFilter
AbstractSecurityFilter
provides basic initialisation for
all security filters, namely configuring the SecurityManager for this instance
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected transient Log logger
securityManager
protected SecurityManager securityManager
muleContext
protected MuleContext muleContext
AbstractSecurityFilter
public AbstractSecurityFilter()
setMuleContext
public void setMuleContext(MuleContext context)
- Specified by:
setMuleContext
in interface MuleContextAware
initialise
public final void initialise()
throws InitialisationException
- Description copied from interface:
Initialisable
- Method used to perform any initialisation work. If a fatal error occurs during
initialisation an
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.
- Specified by:
initialise
in interface Initialisable
- Throws:
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdown
RecoverableException
- if an error occurs that can be recovered from
doInitialise
protected void doInitialise()
throws InitialisationException
- Throws:
InitialisationException
setSecurityManager
public void setSecurityManager(SecurityManager manager)
- Specified by:
setSecurityManager
in interface SecurityFilter
- Parameters:
manager
-
getSecurityManager
public SecurityManager getSecurityManager()
- Specified by:
getSecurityManager
in interface SecurityFilter
getSecurityProviders
public String getSecurityProviders()
- Specified by:
getSecurityProviders
in interface SecurityFilter
setSecurityProviders
public void setSecurityProviders(String providers)
- Specified by:
setSecurityProviders
in interface SecurityFilter
doFilter
public abstract void doFilter(MuleEvent event)
throws SecurityException,
UnknownAuthenticationTypeException,
CryptoFailureException,
SecurityProviderNotFoundException,
EncryptionStrategyNotFoundException,
InitialisationException
- Specified by:
doFilter
in interface SecurityFilter
- Throws:
SecurityException
UnknownAuthenticationTypeException
CryptoFailureException
SecurityProviderNotFoundException
EncryptionStrategyNotFoundException
InitialisationException
updatePayload
protected void updatePayload(MuleMessage message,
Object payload,
MuleEvent event)
throws MuleException
- Throws:
MuleException
Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.