public class SimpleTestUsernamePasswordAuthenticator extends Object implements UsernamePasswordAuthenticator
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
SimpleTestUsernamePasswordAuthenticator() |
Modifier and Type | Method and Description |
---|---|
protected void |
throwsException(String message) |
void |
validate(UsernamePasswordCredentials credentials,
WebContext context)
Validate the credentials.
|
public SimpleTestUsernamePasswordAuthenticator()
public void validate(UsernamePasswordCredentials credentials, WebContext context) throws HttpAction
Authenticator
CredentialsException
in case of failure.validate
in interface Authenticator<UsernamePasswordCredentials>
validate
in interface UsernamePasswordAuthenticator
credentials
- the given credentialscontext
- the web contextHttpAction
- requires a specific HTTP action if necessaryprotected void throwsException(String message)
Copyright © 2016. All rights reserved.