org.mule.security
Class AbstractSecurityFilter

java.lang.Object
  extended by 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


Field Summary
protected  Log logger
           
protected  MuleContext muleContext
           
protected  SecurityManager securityManager
           
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Constructor Summary
AbstractSecurityFilter()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected transient Log logger

securityManager

protected SecurityManager securityManager

muleContext

protected MuleContext muleContext
Constructor Detail

AbstractSecurityFilter

public AbstractSecurityFilter()
Method Detail

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.