public class LdapGroup extends Object implements Group, Serializable
LdapGroup
provides a custom implementation for grouping
principals.Constructor and Description |
---|
LdapGroup(String name)
This creates a new
LdapGroup with the supplied name. |
Modifier and Type | Method and Description |
---|---|
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 . |
public LdapGroup(String name)
LdapGroup
with the supplied name.name
- String
public String getName()
LdapGroup
.public boolean removeMember(Principal user)
removeMember
in interface Group
public Enumeration<? extends Principal> members()
public Set<Principal> getMembers()
Set
of member principalsCopyright © 2018. All rights reserved.