org.mule.transport.http.filters
Class HttpBasicAuthenticationFilter
java.lang.Object
org.mule.security.AbstractSecurityFilter
org.mule.security.AbstractAuthenticationFilter
org.mule.security.AbstractEndpointSecurityFilter
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final Log logger
- logger used by this class
HttpBasicAuthenticationFilter
public HttpBasicAuthenticationFilter()
HttpBasicAuthenticationFilter
public HttpBasicAuthenticationFilter(String realm)
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.