Interface PrincipalRolesMapper
public interface PrincipalRolesMapper
A mapper for extracting Polaris-specific role names from the
SecurityIdentity of a user.-
Method Summary
Modifier and TypeMethodDescriptionmapPrincipalRoles(io.quarkus.security.identity.SecurityIdentity identity) Converts the role names in the identity to Polaris-specific role names.
-
Method Details
-
mapPrincipalRoles
Converts the role names in the identity to Polaris-specific role names.The returned set must contain only valid role names; unrecognized role names should be removed, and original names should be converted, if necessary.
- Parameters:
identity- theSecurityIdentityof the user- Returns:
- the converted role names
-