Class HttpAuthenticatorJwt
java.lang.Object
io.confluent.security.authentication.http.HttpAuthenticator<JwtPrincipal>
io.confluent.security.authentication.http.HttpAuthenticatorJwt
- All Implemented Interfaces:
Authenticator<HttpCredential, JwtPrincipal>
HttpAuthenticator which decodes and validates JsonWebSignatures.-
Constructor Summary
ConstructorsConstructorDescriptionHttpAuthenticatorJwt(Authenticator<BearerCredential, JwtPrincipal> authenticator) -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(HttpCredential credential) GivenHttpCredential, return aPrincipal.
-
Constructor Details
-
HttpAuthenticatorJwt
-
-
Method Details
-
authenticate
GivenHttpCredential, return aPrincipal. If the credential are the expected type and valid returns aPrincipal. If the credential are the expected type invalid, throwsAuthenticationException. If the credential type is not recognized by this authenticator returnsnull- Specified by:
authenticatein interfaceAuthenticator<HttpCredential, JwtPrincipal>- Specified by:
authenticatein classHttpAuthenticator<JwtPrincipal>- Parameters:
credential- subject credential- Returns:
- authenticated principal;
nullif credential type is unrecognized.
-
challenge
- Specified by:
challengein classHttpAuthenticator<JwtPrincipal>
-