public class LdapGroup extends Object implements Group, Serializable
Modifier and Type | Field and Description |
---|---|
private static int |
HASH_CODE_SEED
hash code seed.
|
private Set<Principal> |
members
Principal members.
|
private String |
roleName
LDAP role name.
|
private static long |
serialVersionUID
serial version uid.
|
Constructor and Description |
---|
LdapGroup(String name)
Creates a new ldap group with the supplied name.
|
Modifier and Type | Method and Description |
---|---|
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() |
private static final int HASH_CODE_SEED
private static final long serialVersionUID
private final String roleName
public LdapGroup(String name)
name
- of the grouppublic boolean removeMember(Principal user)
removeMember
in interface Group
public Enumeration<? extends Principal> members()
public Set<Principal> getMembers()
public boolean equals(Object o)
public int hashCode()
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.