Class JwtAuthenticator
java.lang.Object
io.confluent.security.authentication.oauthbearer.JwtAuthenticator
- All Implemented Interfaces:
Authenticator<BearerCredential, JwtPrincipal>
public final class JwtAuthenticator
extends Object
implements Authenticator<BearerCredential, JwtPrincipal>
Authenticator which decodes and validates JsonWebSignatures.-
Constructor Summary
ConstructorsConstructorDescriptionJwtAuthenticator(List<JwtIssuer> issuers, Collection<Constraint> constraints) -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(BearerCredential credential) Given , return aPrincipal.authenticate(BearerCredential credential, io.confluent.security.util.SecurityContext context)
-
Constructor Details
-
JwtAuthenticator
-
-
Method Details
-
authenticate
Given , return aPrincipal. If the credential are valid returns aPrincipal. If the credential are invalid, throwsAuthenticationException.- Specified by:
authenticatein interfaceAuthenticator<BearerCredential, JwtPrincipal>- Parameters:
credential- subject credential- Returns:
- authenticated principal
-
authenticate
public JwtPrincipal authenticate(BearerCredential credential, io.confluent.security.util.SecurityContext context)
-