Package org.apache.polaris.service.auth
Interface Authenticator
- All Known Implementing Classes:
DefaultAuthenticator
public interface Authenticator
An interface for authenticating principals based on provided
credentials.
Authenticators are used in both internal and external authentication scenarios.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.polaris.core.auth.PolarisPrincipalauthenticate(PolarisCredential credentials) Authenticates the givenPolarisCredentialand returns an authenticatedPolarisPrincipal.
-
Method Details
-
authenticate
org.apache.polaris.core.auth.PolarisPrincipal authenticate(PolarisCredential credentials) throws org.apache.iceberg.exceptions.NotAuthorizedException, org.apache.iceberg.exceptions.ServiceFailureException Authenticates the givenPolarisCredentialand returns an authenticatedPolarisPrincipal.If the credentials are not valid or if the authentication fails, implementations MUST throw
NotAuthorizedException.- Parameters:
credentials- the credentials to authenticate- Returns:
- the authenticated principal
- Throws:
org.apache.iceberg.exceptions.NotAuthorizedException- if the credentials are not authorizedorg.apache.iceberg.exceptions.ServiceFailureException- if there is a failure in the authentication service
-