Package com.sas.lsaf.security.membership

## Class MembershipDescriptor

- java.lang.Object
- - com.sas.lsaf.core.AbstractIdentifiable
  - - com.sas.lsaf.security.membership.MembershipDescriptor

- All Implemented Interfaces:
    `Identifiable`, `java.io.Serializable`
  Direct Known Subclasses:
    `Membership`

      public class MembershipDescriptor
      extends AbstractIdentifiable

  A lightweight representation of a membership that is associated with a repository context with membership capability. Membership is the collection of principals that are associated with a context in the repository hierarchy.
  Since:
    1.2
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `MembershipDescriptor​(ObjectIdentity context)` | It is not intended or recommended that the consumer of this API construct these objects.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `equals​(java.lang.Object obj)` |
    `ObjectIdentity` | `getContext()` | Gets the context identity with which the membership is associated.
    `int` | `hashCode()` |
    `java.lang.String` | `toString()` |

    - ### Methods inherited from class com.sas.lsaf.core.AbstractIdentifiable

      `getId, getTypeId`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### MembershipDescriptor

          public MembershipDescriptor​(ObjectIdentity context)

      It is not intended or recommended that the consumer of this API construct these objects. They should only deal with the membership descriptors returned by the API.
      Parameters:
        `context` - the context identity with which the membership is associated.

  - ### Method Detail

    - #### getContext

          public ObjectIdentity getContext()

      Gets the context identity with which the membership is associated.
      Returns:
        The context identity with which the membership is associated.

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `AbstractIdentifiable`

    - #### equals

          public boolean equals​(java.lang.Object obj)

      Overrides:
        `equals` in class `AbstractIdentifiable`

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `AbstractIdentifiable`