Interface SubjectRoleParser

All Known Subinterfaces:
JWTRoleParser, SAMLRoleParser
All Known Implementing Classes:
DefaultJWTRoleParser, DefaultSAMLRoleParser, DefaultSubjectRoleParser

public interface SubjectRoleParser
This interface defines a way to extract roles from a JAAS Subject
  • Method Details

    • parseRolesFromSubject

      Set<Principal> parseRolesFromSubject(Principal principal, Subject subject)
      Return the set of User/Principal roles from the Subject.
      Parameters:
      principal - the optional Principal
      subject - the JAAS Subject
      Returns:
      the set of User/Principal roles from the Subject.