Interface Authenticator<C extends Credential, P extends Principal>

Type Parameters:
C - the type of credentials the authenticator can authenticate
P - 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

    Modifier and Type
    Method
    Description
    authenticate(C credential)
    Given , return a Principal.
  • Method Details

    • authenticate

      P authenticate(C credential)
      Given , return a Principal. If the credential are valid returns a Principal. If the credential are invalid, throws AuthenticationException.
      Parameters:
      credential - subject credential
      Returns:
      authenticated principal
      Throws:
      io.confluent.security.authentication.AuthenticationException - if the credential cannot be validated