public class SimpleTestTokenAuthenticator extends Object implements Authenticator<TokenCredentials>
Constructor and Description |
---|
SimpleTestTokenAuthenticator() |
Modifier and Type | Method and Description |
---|---|
void |
validate(TokenCredentials credentials,
WebContext context)
Validate the credentials.
|
public void validate(TokenCredentials credentials, WebContext context) throws HttpAction, CredentialsException
Authenticator
CredentialsException
in case of failure.validate
in interface Authenticator<TokenCredentials>
credentials
- the given credentialscontext
- the web contextHttpAction
- requires a specific HTTP action if necessaryCredentialsException
- the credentials are invalidCopyright © 2017. All rights reserved.