Package waffle.jaas

Class GroupPrincipal

java.lang.Object
waffle.jaas.UserPrincipal
waffle.jaas.GroupPrincipal
All Implemented Interfaces:
Serializable, Principal

@Deprecated public class GroupPrincipal extends UserPrincipal
Deprecated.
This class is deprecated as hiding a principal inside another principal is not JAAS compliant. Use the Principals in the Subject to directly enroll groups or roles by name.
Group principal.
Author:
rockchip[dot]tv[at]gmail[dot]com
See Also:
  • Constructor Details

    • GroupPrincipal

      public GroupPrincipal(String fqn)
      Deprecated.
      Instantiates a new group principal.
      Parameters:
      fqn - the fqn
  • Method Details

    • getName

      public String getName()
      Deprecated.
      Description copied from class: UserPrincipal
      Fully qualified username.
      Specified by:
      getName in interface Principal
      Overrides:
      getName in class UserPrincipal
      Returns:
      the name
    • addMember

      public boolean addMember(Principal user)
      Deprecated.
      Add user principal to member.
      Parameters:
      user - principal
      Returns:
      True if user principal is a member
    • isMember

      public boolean isMember(Principal user)
      Deprecated.
      Is user principal a member of the group.
      Parameters:
      user - principal
      Returns:
      True if user principal is a member
    • members

      public Enumeration<Principal> members()
      Deprecated.
      Member enumeration.
      Returns:
      enumerated members
    • removeMember

      public boolean removeMember(Principal user)
      Deprecated.
      Remove user from member.
      Parameters:
      user - principal
      Returns:
      True if user principal is removed
    • toString

      public String toString()
      Deprecated.
      Specified by:
      toString in interface Principal
      Overrides:
      toString in class Object