Class GroupPrincipal
- java.lang.Object
-
- org.apache.qpid.server.security.group.GroupPrincipal
-
- All Implemented Interfaces:
Serializable
,Principal
,QpidPrincipal
public class GroupPrincipal extends Object implements QpidPrincipal
Immutable representation of a user group. In Qpid, groups do not know about their membership, and therefore theaddMember(Principal)
methods etc throwUnsupportedOperationException
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GroupPrincipal(String groupName, ConfiguredObject<?> origin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addMember(Principal user)
boolean
equals(Object o)
String
getName()
ConfiguredObject<?>
getOrigin()
int
hashCode()
boolean
isMember(Principal member)
Enumeration<? extends Principal>
members()
boolean
removeMember(Principal user)
String
toString()
-
-
-
Constructor Detail
-
GroupPrincipal
public GroupPrincipal(String groupName, ConfiguredObject<?> origin)
-
-
Method Detail
-
addMember
public boolean addMember(Principal user)
-
removeMember
public boolean removeMember(Principal user)
-
isMember
public boolean isMember(Principal member)
-
members
public Enumeration<? extends Principal> members()
-
getOrigin
public ConfiguredObject<?> getOrigin()
- Specified by:
getOrigin
in interfaceQpidPrincipal
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
-