edu.vt.middleware.ldap.jaas
Class LdapGroup

java.lang.Object
  extended by edu.vt.middleware.ldap.jaas.LdapGroup
All Implemented Interfaces:
Serializable, Group, Principal

public class LdapGroup
extends Object
implements Group, Serializable

LdapGroup provides a custom implementation for grouping principals.

Version:
$Revision: 1330 $ $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
Author:
Middleware Services
See Also:
Serialized Form

Constructor Summary
LdapGroup(String name)
          This creates a new LdapGroup with the supplied name.
 
Method Summary
 boolean addMember(Principal user)
          
 Set<Principal> getMembers()
          Returns an unmodifiable set of the members in this group.
 String getName()
          This returns the name for this LdapGroup.
 boolean isMember(Principal member)
          
 Enumeration<? extends Principal> members()
          
 boolean removeMember(Principal user)
          
 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
 

Constructor Detail

LdapGroup

public LdapGroup(String name)
This creates a new LdapGroup with the supplied name.

Parameters:
name - String
Method Detail

getName

public String getName()
This returns the name for this LdapGroup.

Specified by:
getName in interface Principal
Returns:
String

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

toString

public String toString()
This returns a String representation of this LdapGroup.

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


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