Class PicketBoxUtil


  • public class PicketBoxUtil
    extends Object
    Utility Methods
    Since:
    Feb 5, 2010
    Author:
    Anil.Saldhana@redhat.com
    • Constructor Detail

      • PicketBoxUtil

        public PicketBoxUtil()
    • Method Detail

      • getRolesFromSubject

        public static RoleGroup getRolesFromSubject​(Subject subject)
        Given a JAAS Subject, will look for Group principals with name "Roles" and return that in a RoleGroup
        Parameters:
        subject -
        Returns:
        a RoleGroup containing the roles
      • getPrincipalFromSubject

        public static Principal getPrincipalFromSubject​(Subject subject)
        Get the first non-group principal
        Parameters:
        subject -
        Returns: