Apache CXF API

org.apache.cxf.common.security
Class SimpleGroup

java.lang.Object
  extended by org.apache.cxf.common.security.SimplePrincipal
      extended by org.apache.cxf.common.security.SimpleGroup
All Implemented Interfaces:
Group, Principal

public class SimpleGroup
extends SimplePrincipal
implements Group

Simple Group implementation


Constructor Summary
SimpleGroup(String groupName)
           
SimpleGroup(String groupName, Principal member)
           
SimpleGroup(String groupName, String memberName)
           
 
Method Summary
 boolean addMember(Principal p)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 boolean isMember(Principal p)
           
 Enumeration<? extends Principal> members()
           
 boolean removeMember(Principal p)
           
 
Methods inherited from class org.apache.cxf.common.security.SimplePrincipal
getName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Principal
getName, toString
 

Constructor Detail

SimpleGroup

public SimpleGroup(String groupName)

SimpleGroup

public SimpleGroup(String groupName,
                   String memberName)

SimpleGroup

public SimpleGroup(String groupName,
                   Principal member)
Method Detail

isMember

public boolean isMember(Principal p)
Specified by:
isMember in interface Group

addMember

public boolean addMember(Principal p)
Specified by:
addMember in interface Group

members

public Enumeration<? extends Principal> members()
Specified by:
members in interface Group

removeMember

public boolean removeMember(Principal p)
Specified by:
removeMember in interface Group

equals

public boolean equals(Object obj)
Specified by:
equals in interface Principal
Overrides:
equals in class SimplePrincipal

hashCode

public int hashCode()
Specified by:
hashCode in interface Principal
Overrides:
hashCode in class SimplePrincipal

Apache CXF API

Apache CXF