Package org.apache.cxf.common.security
Class SimpleGroup
java.lang.Object
org.apache.cxf.common.security.SimplePrincipal
org.apache.cxf.common.security.SimpleGroup
- All Implemented Interfaces:
- Serializable,- Principal,- GroupPrincipal
Simple Group implementation
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionSimpleGroup(String groupName) SimpleGroup(String groupName, String memberName) SimpleGroup(String groupName, Principal member) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanAdds the specified member to the group.booleaninthashCode()booleanReturns true if the passed principal is a member of the group.Enumeration<? extends Principal>members()Returns an enumeration of the members in the group.booleanRemoves the specified member from the group.Methods inherited from class org.apache.cxf.common.security.SimplePrincipalgetName, toString
- 
Constructor Details- 
SimpleGroup
- 
SimpleGroup
- 
SimpleGroup
 
- 
- 
Method Details- 
isMemberDescription copied from interface:GroupPrincipalReturns true if the passed principal is a member of the group. This method does a recursive search, so if a principal belongs to a group which is a member of this group, true is returned.- Specified by:
- isMemberin interface- GroupPrincipal
- Parameters:
- p- the principal whose membership is to be checked.
- Returns:
- true if the principal is a member of this group, false otherwise.
 
- 
addMemberDescription copied from interface:GroupPrincipalAdds the specified member to the group.- Specified by:
- addMemberin interface- GroupPrincipal
- Parameters:
- p- the principal to add to this group.
- Returns:
- true if the member was successfully added, false if the principal was already a member.
 
- 
membersDescription copied from interface:GroupPrincipalReturns an enumeration of the members in the group. The returned objects can be instances of either Principal or Group (which is a subclass of Principal).- Specified by:
- membersin interface- GroupPrincipal
- Returns:
- an enumeration of the group members.
 
- 
removeMemberDescription copied from interface:GroupPrincipalRemoves the specified member from the group.- Specified by:
- removeMemberin interface- GroupPrincipal
- Parameters:
- p- the principal to remove from this group.
- Returns:
- true if the principal was removed, or false if the principal was not a member.
 
- 
equals- Specified by:
- equalsin interface- Principal
- Overrides:
- equalsin class- SimplePrincipal
 
- 
hashCodepublic int hashCode()- Specified by:
- hashCodein interface- Principal
- Overrides:
- hashCodein class- SimplePrincipal
 
 
-