org.mule.transport.http.filters
Class HttpBasicAuthenticationFilter

java.lang.Object
  extended by org.mule.security.AbstractSecurityFilter
      extended by org.mule.security.AbstractAuthenticationFilter
          extended by org.mule.security.AbstractEndpointSecurityFilter
              extended by org.mule.transport.http.filters.HttpBasicAuthenticationFilter
All Implemented Interfaces:
MuleContextAware, Initialisable, AuthenticationFilter, EndpointSecurityFilter, SecurityFilter, EndpointAware
Direct Known Subclasses:
HttpBasicAuthenticationFilter

public class HttpBasicAuthenticationFilter
extends AbstractEndpointSecurityFilter

HttpBasicAuthenticationFilter TODO


Field Summary
protected static Log logger
          logger used by this class
 
Fields inherited from class org.mule.security.AbstractEndpointSecurityFilter
endpoint
 
Fields inherited from class org.mule.security.AbstractSecurityFilter
muleContext, securityManager
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Constructor Summary
HttpBasicAuthenticationFilter()
           
HttpBasicAuthenticationFilter(String realm)
           
 
Method Summary
 void authenticateInbound(MuleEvent event)
          Authenticates the current message if authenticate is set to true.
 void authenticateOutbound(MuleEvent event)
          Authenticates the current message if authenticate is set to true.
protected  Authentication createAuthentication(String username, String password, MuleEvent event)
           
protected  void doInitialise()
           
 String getRealm()
           
 boolean isRealmRequired()
           
 void setRealm(String realm)
           
 void setRealmRequired(boolean realmRequired)
           
protected  void setUnauthenticated(MuleEvent event)
           
 
Methods inherited from class org.mule.security.AbstractEndpointSecurityFilter
authenticate, doFilter, getEndpoint, setEndpoint
 
Methods inherited from class org.mule.security.AbstractAuthenticationFilter
getCredentialsAccessor, isAuthenticate, setAuthenticate, setCredentialsAccessor
 
Methods inherited from class org.mule.security.AbstractSecurityFilter
getSecurityManager, getSecurityProviders, initialise, setMuleContext, setSecurityManager, setSecurityProviders, updatePayload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mule.api.security.AuthenticationFilter
getCredentialsAccessor, setCredentialsAccessor
 
Methods inherited from interface org.mule.api.security.SecurityFilter
getSecurityManager, getSecurityProviders, setSecurityManager, setSecurityProviders
 
Methods inherited from interface org.mule.api.lifecycle.Initialisable
initialise
 

Field Detail

logger

protected static final Log logger
logger used by this class

Constructor Detail

HttpBasicAuthenticationFilter

public HttpBasicAuthenticationFilter()

HttpBasicAuthenticationFilter

public HttpBasicAuthenticationFilter(String realm)
Method Detail

doInitialise

protected void doInitialise()
                     throws InitialisationException
Overrides:
doInitialise in class AbstractSecurityFilter
Throws:
InitialisationException

getRealm

public String getRealm()

setRealm

public void setRealm(String realm)

isRealmRequired

public boolean isRealmRequired()

setRealmRequired

public void setRealmRequired(boolean realmRequired)

authenticateInbound

public void authenticateInbound(MuleEvent event)
                         throws SecurityException,
                                SecurityProviderNotFoundException,
                                UnknownAuthenticationTypeException
Authenticates the current message if authenticate is set to true. This method will always populate the secure context in the session

Specified by:
authenticateInbound in class AbstractEndpointSecurityFilter
Parameters:
event - the current message recieved
Throws:
SecurityException - if authentication fails
SecurityProviderNotFoundException
UnknownAuthenticationTypeException

createAuthentication

protected Authentication createAuthentication(String username,
                                              String password,
                                              MuleEvent event)

setUnauthenticated

protected void setUnauthenticated(MuleEvent event)

authenticateOutbound

public void authenticateOutbound(MuleEvent event)
                          throws SecurityException,
                                 SecurityProviderNotFoundException
Authenticates the current message if authenticate is set to true. This method will always populate the secure context in the session

Specified by:
authenticateOutbound in class AbstractEndpointSecurityFilter
Parameters:
event - the current event being dispatched
Throws:
SecurityException - if authentication fails
SecurityProviderNotFoundException


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.