Class LdapGroup

  • All Implemented Interfaces:
    java.io.Serializable, java.security.Principal

    public class LdapGroup
    extends java.lang.Object
    implements java.security.Principal, java.io.Serializable
    Provides a custom implementation for grouping principals.
    Author:
    Middleware Services
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      LdapGroup​(java.lang.String name)
      Creates a new ldap group with the supplied name.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addMember​(java.security.Principal user)
      Adds a member to this group.
      boolean equals​(java.lang.Object o)  
      java.util.Set<java.security.Principal> getMembers()
      Returns an unmodifiable set of the members in this group.
      java.lang.String getName()  
      int hashCode()  
      boolean isMember​(java.security.Principal member)  
      void removeMember​(java.security.Principal user)
      Removes a member from this group.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.security.Principal

        implies
    • Constructor Detail

      • LdapGroup

        public LdapGroup​(java.lang.String name)
        Creates a new ldap group with the supplied name.
        Parameters:
        name - of the group
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface java.security.Principal
      • addMember

        public void addMember​(java.security.Principal user)
        Adds a member to this group.
        Parameters:
        user - to add
      • removeMember

        public void removeMember​(java.security.Principal user)
        Removes a member from this group.
        Parameters:
        user - to remove
      • isMember

        public boolean isMember​(java.security.Principal member)
      • getMembers

        public java.util.Set<java.security.Principal> getMembers()
        Returns an unmodifiable set of the members in this group.
        Returns:
        set of member principals
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.security.Principal
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.security.Principal
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface java.security.Principal
        Overrides:
        toString in class java.lang.Object