public class UsernamePasswordAuthenticationFilter extends AbstractAuthenticationFilter
Message
based on expressions specified via the username and password setters. These are then used to create a DefaultMuleAuthentication
object which is passed to the authenticate method of the SecurityManager.logger, muleContext, securityManager| Constructor and Description |
|---|
UsernamePasswordAuthenticationFilter() |
| Modifier and Type | Method and Description |
|---|---|
Event |
authenticate(Event event)
Authenticates the current message.
|
protected org.mule.runtime.api.security.Authentication |
getAuthenticationToken(Event event) |
String |
getPassword() |
String |
getUsername() |
void |
setPassword(String password) |
void |
setUsername(String username) |
doFilter, getCredentialsAccessor, isAuthenticate, setAuthenticate, setCredentialsAccessordoInitialise, getSecurityManager, getSecurityProviders, initialise, setMuleContext, setSecurityManager, setSecurityProvidersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSecurityManager, getSecurityProviders, setSecurityManager, setSecurityProviderspublic UsernamePasswordAuthenticationFilter()
public Event authenticate(Event event) throws org.mule.runtime.api.security.SecurityException, org.mule.runtime.api.security.SecurityProviderNotFoundException, org.mule.runtime.api.security.UnknownAuthenticationTypeException
authenticate in interface AuthenticationFilterauthenticate in class AbstractAuthenticationFilterevent - the current message recievedorg.mule.runtime.api.security.SecurityException - if authentication failsorg.mule.runtime.api.security.SecurityProviderNotFoundExceptionorg.mule.runtime.api.security.UnknownAuthenticationTypeExceptionprotected org.mule.runtime.api.security.Authentication getAuthenticationToken(Event event) throws UnauthorisedException
UnauthorisedExceptionpublic String getUsername()
public String getPassword()
public void setUsername(String username)
public void setPassword(String password)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.