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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GroupPrincipal(String fqn)Deprecated.Instantiates a new group principal.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanaddMember(Principal user)Deprecated.StringgetName()Deprecated.Fully qualified username.booleanisMember(Principal user)Deprecated.Enumeration<Principal>members()Deprecated.booleanremoveMember(Principal user)Deprecated.StringtoString()Deprecated.-
Methods inherited from class waffle.jaas.UserPrincipal
equals, hashCode
-
-
-
-
Constructor Detail
-
GroupPrincipal
public GroupPrincipal(String fqn)
Deprecated.Instantiates a new group principal.- Parameters:
fqn- the fqn
-
-
Method Detail
-
getName
public String getName()
Deprecated.Description copied from class:UserPrincipalFully qualified username.- Specified by:
getNamein interfacePrincipal- Overrides:
getNamein classUserPrincipal- Returns:
- the name
-
addMember
public boolean addMember(Principal user)
Deprecated.
-
isMember
public boolean isMember(Principal user)
Deprecated.
-
members
public Enumeration<Principal> members()
Deprecated.
-
removeMember
public boolean removeMember(Principal user)
Deprecated.
-
-