public class HttpBasicAuthenticationFilter extends AbstractEndpointSecurityFilter
HttpBasicAuthenticationFilter
TODOModifier and Type | Field and Description |
---|---|
protected static Log |
logger
logger used by this class
|
endpoint
muleContext, securityManager
PHASE_NAME
Constructor and Description |
---|
HttpBasicAuthenticationFilter() |
HttpBasicAuthenticationFilter(String realm) |
Modifier and Type | Method and Description |
---|---|
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) |
authenticate, doFilter, getEndpoint, setEndpoint
getCredentialsAccessor, isAuthenticate, setAuthenticate, setCredentialsAccessor
getSecurityManager, getSecurityProviders, initialise, setMuleContext, setSecurityManager, setSecurityProviders, updatePayload
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCredentialsAccessor, setCredentialsAccessor
getSecurityManager, getSecurityProviders, setSecurityManager, setSecurityProviders
initialise
protected static final Log logger
public HttpBasicAuthenticationFilter()
public HttpBasicAuthenticationFilter(String realm)
protected void doInitialise() throws InitialisationException
doInitialise
in class AbstractSecurityFilter
InitialisationException
public String getRealm()
public void setRealm(String realm)
public boolean isRealmRequired()
public void setRealmRequired(boolean realmRequired)
public void authenticateInbound(MuleEvent event) throws SecurityException, SecurityProviderNotFoundException, UnknownAuthenticationTypeException
authenticateInbound
in class AbstractEndpointSecurityFilter
event
- the current message recievedSecurityException
- if authentication failsSecurityProviderNotFoundException
UnknownAuthenticationTypeException
protected Authentication createAuthentication(String username, String password, MuleEvent event)
protected void setUnauthenticated(MuleEvent event)
public void authenticateOutbound(MuleEvent event) throws SecurityException, SecurityProviderNotFoundException
authenticateOutbound
in class AbstractEndpointSecurityFilter
event
- the current event being dispatchedSecurityException
- if authentication failsSecurityProviderNotFoundException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.