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, Group, Principal

      public class SimpleGroup
      extends SimplePrincipal
      implements Group

  Simple Group implementation
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimpleGroup(String groupName)`
    `SimpleGroup(String groupName, Principal member)`
    `SimpleGroup(String groupName, String memberName)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `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, implies, 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