Interface PrincipalRoleMapper

    • Method Detail

      • principalToRoles

        java.util.Set<java.lang.String> principalToRoles​(java.security.Principal principal)
        Maps a principal name to a set of role names. The principal name depends on the source of the principal itself. For example, in LDAP a Principal might use the Distinguished Name format (DN). The mapper should return null if it does not recognize the principal.
        Parameters:
        principal -
        Returns:
        list of roles the principal belongs to