public class SimpleTestUsernamePasswordAuthenticator extends Object implements Authenticator<UsernamePasswordCredentials>
| 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, CredentialsException
AuthenticatorCredentialsException in case of failure.validate in interface Authenticator<UsernamePasswordCredentials>credentials - the given credentialscontext - the web contextHttpAction - requires a specific HTTP action if necessaryCredentialsException - the credentials are invalidprotected void throwsException(String message) throws CredentialsException
CredentialsExceptionCopyright © 2017. All rights reserved.