public final class HttpAuthenticatorJwt extends HttpAuthenticator<JwtPrincipal>
HttpAuthenticator which decodes and validates JsonWebSignatures.| Constructor and Description |
|---|
HttpAuthenticatorJwt(Authenticator<BearerCredential,JwtPrincipal> authenticator) |
| Modifier and Type | Method and Description |
|---|---|
JwtPrincipal |
authenticate(HttpCredential credential)
Given
HttpCredential , return a Principal. |
String |
challenge() |
public HttpAuthenticatorJwt(Authenticator<BearerCredential,JwtPrincipal> authenticator)
public JwtPrincipal 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 nullauthenticate in interface Authenticator<HttpCredential,JwtPrincipal>authenticate in class HttpAuthenticator<JwtPrincipal>credential - subject credentialnull if credential type is unrecognized.public String challenge()
challenge in class HttpAuthenticator<JwtPrincipal>