Class HttpAuthenticator<T extends Principal>
java.lang.Object
io.confluent.security.authentication.http.HttpAuthenticator<T>
- All Implemented Interfaces:
Authenticator<HttpCredential, T>
- Direct Known Subclasses:
HttpAuthenticatorJwt
public abstract class HttpAuthenticator<T extends Principal>
extends Object
implements Authenticator<HttpCredential, T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Tauthenticate(HttpCredential credential) GivenHttpCredential, return aPrincipal.abstract String
-
Constructor Details
-
HttpAuthenticator
public HttpAuthenticator()
-
-
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, T extends Principal>- Parameters:
credential- subject credential- Returns:
- authenticated principal;
nullif credential type is unrecognized. - Throws:
io.confluent.security.authentication.AuthenticationException- if the credential cannot be validated
-
challenge
-