Class LdapGroup

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

    public class LdapGroup
    extends java.lang.Object
    implements java.security.acl.Group, java.io.Serializable
    LdapGroup provides a custom implementation for grouping principals.
    Version:
    $Revision: 1330 $ $Date: 2010-05-24 00:10:53 +0200 (Mon, 24 May 2010) $
    Author:
    Middleware Services
    See Also:
    Serialized Form
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean addMember​(java.security.Principal user)
      java.util.Set<java.security.Principal> getMembers()
      Returns an unmodifiable set of the members in this group.
      java.lang.String getName()
      This returns the name for this LdapGroup.
      boolean isMember​(java.security.Principal member)
      java.util.Enumeration<? extends java.security.Principal> members()
      boolean removeMember​(java.security.Principal user)
      java.lang.String toString()
      This returns a String representation of this LdapGroup.
      • Methods inherited from class java.lang.Object

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

        equals, hashCode, implies
    • Constructor Detail

      • LdapGroup

        public LdapGroup​(java.lang.String name)
        This creates a new LdapGroup with the supplied name.
        Parameters:
        name - String
    • Method Detail

      • getName

        public java.lang.String getName()
        This returns the name for this LdapGroup.
        Specified by:
        getName in interface java.security.Principal
        Returns:
        String
      • addMember

        public boolean addMember​(java.security.Principal user)
        Specified by:
        addMember in interface java.security.acl.Group
      • removeMember

        public boolean removeMember​(java.security.Principal user)
        Specified by:
        removeMember in interface java.security.acl.Group
      • isMember

        public boolean isMember​(java.security.Principal member)
        Specified by:
        isMember in interface java.security.acl.Group
      • members

        public java.util.Enumeration<? extends java.security.Principal> members()
        Specified by:
        members in interface java.security.acl.Group
      • getMembers

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

        public java.lang.String toString()
        This returns a String representation of this LdapGroup.
        Specified by:
        toString in interface java.security.Principal
        Overrides:
        toString in class java.lang.Object
        Returns:
        String