Interface Authenticator<C extends Credential, P extends Principal>
- Type Parameters:
C- the type of credentials the authenticator can authenticateP- the type of principals the authenticator returns
- All Known Implementing Classes:
HttpAuthenticator,HttpAuthenticatorJwt,JwtAuthenticator
public interface Authenticator<C extends Credential, P extends Principal>
Validates user-provided credentials and returns a
Principal.-
Method Summary
-
Method Details
-
authenticate
Given , return aPrincipal. If the credential are valid returns aPrincipal. If the credential are invalid, throwsAuthenticationException.- Parameters:
credential- subject credential- Returns:
- authenticated principal
- Throws:
io.confluent.security.authentication.AuthenticationException- if the credential cannot be validated
-