org.ldaptive.jaas
Class LdapGroup

java.lang.Object
  extended by org.ldaptive.jaas.LdapGroup
All Implemented Interfaces:
Serializable, Group, Principal

public class LdapGroup
extends Object
implements Group, Serializable

Provides a custom implementation for grouping principals.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services
See Also:
Serialized Form

Constructor Summary
LdapGroup(String name)
          Creates a new ldap group with the supplied name.
 
Method Summary
 boolean addMember(Principal user)
          
 boolean equals(Object o)
          
 Set<Principal> getMembers()
          Returns an unmodifiable set of the members in this group.
 String getName()
          
 int hashCode()
          
 boolean isMember(Principal member)
          
 Enumeration<? extends Principal> members()
          
 boolean removeMember(Principal user)
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LdapGroup

public LdapGroup(String name)
Creates a new ldap group with the supplied name.

Parameters:
name - of the group
Method Detail

getName

public String getName()

Specified by:
getName in interface Principal

addMember

public boolean addMember(Principal user)

Specified by:
addMember in interface Group

removeMember

public boolean removeMember(Principal user)

Specified by:
removeMember in interface Group

isMember

public boolean isMember(Principal member)

Specified by:
isMember in interface Group

members

public Enumeration<? extends Principal> members()

Specified by:
members in interface Group

getMembers

public Set<Principal> getMembers()
Returns an unmodifiable set of the members in this group.

Returns:
set of member principals

equals

public boolean equals(Object o)

Specified by:
equals in interface Principal
Overrides:
equals in class Object

hashCode

public int hashCode()

Specified by:
hashCode in interface Principal
Overrides:
hashCode in class Object

toString

public String toString()

Specified by:
toString in interface Principal
Overrides:
toString in class Object


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.