Package waffle.jaas
Class GroupPrincipal
- java.lang.Object
-
- waffle.jaas.UserPrincipal
-
- waffle.jaas.GroupPrincipal
-
- All Implemented Interfaces:
Serializable,Group,Principal
public class GroupPrincipal extends UserPrincipal implements Group
Group principal.- Author:
- rockchip[dot]tv[at]gmail[dot]com
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GroupPrincipal(String fqn)Instantiates a new group principal.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddMember(Principal user)StringgetName()Fully qualified username.booleanisMember(Principal user)Enumeration<? extends Principal>members()booleanremoveMember(Principal user)StringtoString()-
Methods inherited from class waffle.jaas.UserPrincipal
equals, hashCode
-
-
-
-
Constructor Detail
-
GroupPrincipal
public GroupPrincipal(String fqn)
Instantiates a new group principal.- Parameters:
fqn- the fqn
-
-
Method Detail
-
getName
public String getName()
Description copied from class:UserPrincipalFully qualified username.- Specified by:
getNamein interfacePrincipal- Overrides:
getNamein classUserPrincipal- Returns:
- the name
-
members
public Enumeration<? extends Principal> members()
-
removeMember
public boolean removeMember(Principal user)
- Specified by:
removeMemberin interfaceGroup
-
-