Interface PrincipalRolesMapper


public interface PrincipalRolesMapper
A mapper for extracting Polaris-specific role names from the SecurityIdentity of a user.
  • Method Summary

    Modifier and Type
    Method
    Description
    mapPrincipalRoles(io.quarkus.security.identity.SecurityIdentity identity)
    Converts the role names in the identity to Polaris-specific role names.
  • Method Details

    • mapPrincipalRoles

      Set<String> mapPrincipalRoles(io.quarkus.security.identity.SecurityIdentity identity)
      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 - the SecurityIdentity of the user
      Returns:
      the converted role names