Package org.apache.polaris.service.auth
Interface PrincipalAuthInfo
- All Known Subinterfaces:
DecodedToken
public interface PrincipalAuthInfo
Principal information extracted from authentication data (typically, an access token) by the
configured authentication mechanism. Used to determine the principal id, name, and roles while
authenticating a request.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThe principal id, or null if unknown.The principal name, or null if unknown.The principal roles present in the token.
-
Method Details
-
getPrincipalId
The principal id, or null if unknown. Used for principal lookups by id. -
getPrincipalName
The principal name, or null if unknown. Used for principal lookups by name. -
getPrincipalRoles
The principal roles present in the token. The specialDefaultAuthenticator.PRINCIPAL_ROLE_ALLcan be used to denote a request for all principal roles that the principal has access to.
-