public class HttpBasicAuthenticationFilter extends AbstractAuthenticationFilter
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
logger |
muleContext, securityManager| Constructor and Description |
|---|
HttpBasicAuthenticationFilter()
Creates a filter based on the HTTP listener error response builder status code and headers configuration.
|
| Modifier and Type | Method and Description |
|---|---|
Event |
authenticate(Event event)
Authenticates the current message if authenticate is set to true.
|
protected Authentication |
createAuthentication(String username,
String password,
Event event) |
protected void |
doInitialise() |
String |
getRealm() |
boolean |
isRealmRequired() |
void |
setRealm(String realm) |
void |
setRealmRequired(boolean realmRequired) |
protected Event |
setUnauthenticated(Event event,
InternalMessage message) |
doFilter, getCredentialsAccessor, isAuthenticate, setAuthenticate, setCredentialsAccessorgetSecurityManager, getSecurityProviders, initialise, setMuleContext, setSecurityManager, setSecurityProviders, updatePayloadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSecurityManager, getSecurityProviders, setSecurityManager, setSecurityProviderspublic HttpBasicAuthenticationFilter()
protected void doInitialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
doInitialise in class AbstractSecurityFilterorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic String getRealm()
public void setRealm(String realm)
public boolean isRealmRequired()
public void setRealmRequired(boolean realmRequired)
protected Authentication createAuthentication(String username, String password, Event event)
protected Event setUnauthenticated(Event event, InternalMessage message)
public Event authenticate(Event event) throws SecurityException, UnknownAuthenticationTypeException, CryptoFailureException, SecurityProviderNotFoundException, EncryptionStrategyNotFoundException, org.mule.runtime.api.lifecycle.InitialisationException
Event sessionauthenticate in interface AuthenticationFilterauthenticate in class AbstractAuthenticationFilterevent - the current message receivedSecurityException - if authentication failsUnknownAuthenticationTypeExceptionCryptoFailureExceptionSecurityProviderNotFoundExceptionEncryptionStrategyNotFoundExceptionorg.mule.runtime.api.lifecycle.InitialisationExceptionCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.