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 Details

    • HttpAuthenticator

      public HttpAuthenticator()
  • Method Details

    • authenticate

      public abstract T authenticate(HttpCredential credential)
      Given HttpCredential , return a Principal. If the credential are the expected type and valid returns a Principal. If the credential are the expected type invalid, throws AuthenticationException. If the credential type is not recognized by this authenticator returns null
      Specified by:
      authenticate in interface Authenticator<HttpCredential, T extends Principal>
      Parameters:
      credential - subject credential
      Returns:
      authenticated principal; null if credential type is unrecognized.
      Throws:
      io.confluent.security.authentication.AuthenticationException - if the credential cannot be validated
    • challenge

      public abstract String challenge()