Package waffle.jaas
Class GroupPrincipal
java.lang.Object
waffle.jaas.UserPrincipal
waffle.jaas.GroupPrincipal
- All Implemented Interfaces:
Serializable
,Principal
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.Add user principal to member.getName()
Deprecated.Fully qualified username.boolean
Deprecated.Is user principal a member of the group.members()
Deprecated.Member enumeration.boolean
removeMember
(Principal user) Deprecated.Remove user from member.toString()
Deprecated.Methods inherited from class waffle.jaas.UserPrincipal
equals, hashCode
-
Constructor Details
-
GroupPrincipal
Deprecated.Instantiates a new group principal.- Parameters:
fqn
- the fqn
-
-
Method Details
-
getName
Deprecated.Description copied from class:UserPrincipal
Fully qualified username.- Specified by:
getName
in interfacePrincipal
- Overrides:
getName
in classUserPrincipal
- Returns:
- the name
-
addMember
Deprecated.Add user principal to member.- Parameters:
user
- principal- Returns:
- True if user principal is a member
-
isMember
Deprecated.Is user principal a member of the group.- Parameters:
user
- principal- Returns:
- True if user principal is a member
-
members
Deprecated.Member enumeration.- Returns:
- enumerated members
-
removeMember
Deprecated.Remove user from member.- Parameters:
user
- principal- Returns:
- True if user principal is removed
-
toString
Deprecated.
-