public abstract class HttpAuthenticator<T extends Principal> extends Object implements Authenticator<HttpCredential,T>
Constructor and Description |
---|
HttpAuthenticator() |
Modifier and Type | Method and Description |
---|---|
abstract T |
authenticate(HttpCredential credential)
Given
HttpCredential , return a Principal . |
abstract String |
challenge() |
public abstract T authenticate(HttpCredential credential)
HttpCredential
, return a Principal
.
If the credential are the expected type and valid returns a Principal
.
If the credential are the expected type invalid, throws AuthenticationException
.
If the credential type is not recognized by this authenticator returns null
authenticate
in interface Authenticator<HttpCredential,T extends Principal>
credential
- subject credentialnull
if credential type is unrecognized.AuthenticationException
- if the credential cannot be validatedpublic abstract String challenge()