public class UsernamePasswordAuthenticationFilter extends AbstractAuthenticationFilter
MuleMessage
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
PHASE_NAME
Constructor and Description |
---|
UsernamePasswordAuthenticationFilter() |
Modifier and Type | Method and Description |
---|---|
void |
authenticate(MuleEvent event)
Authenticates the current message.
|
protected Authentication |
getAuthenticationToken(MuleEvent event) |
String |
getPassword() |
String |
getUsername() |
void |
setPassword(String password) |
void |
setUsername(String username) |
doFilter, getCredentialsAccessor, isAuthenticate, setAuthenticate, setCredentialsAccessor
doInitialise, getSecurityManager, getSecurityProviders, initialise, setMuleContext, setSecurityManager, setSecurityProviders, updatePayload
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSecurityManager, getSecurityProviders, setSecurityManager, setSecurityProviders
initialise
public UsernamePasswordAuthenticationFilter()
public void authenticate(MuleEvent event) throws SecurityException, SecurityProviderNotFoundException, UnknownAuthenticationTypeException
authenticate
in interface AuthenticationFilter
authenticate
in class AbstractAuthenticationFilter
event
- the current message recievedSecurityException
- if authentication failsSecurityProviderNotFoundException
UnknownAuthenticationTypeException
protected Authentication getAuthenticationToken(MuleEvent event) throws UnauthorisedException
UnauthorisedException
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.