Package org.ldaptive.jaas
Class LdapGroup
java.lang.Object
org.ldaptive.jaas.LdapGroup
- All Implemented Interfaces:
Principal
Provides a custom implementation for grouping principals.
-
Field Details
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDhash code seed.- See Also:
-
groupName
LDAP group name. -
members
Principal members.
-
-
Constructor Details
-
LdapGroup
Creates a new ldap group with the supplied name.- Parameters:
name- of the groupprincipals- that are members of the group
-
-
Method Details
-
getName
-
isMember
Returns whether the supplied member is in this group.- Parameters:
member- to check- Returns:
- whether the supplied member is in this group
-
getMembers
Returns an unmodifiable set of the members in this group.- Returns:
- set of member principals
-
equals
-
hashCode
public int hashCode() -
toString
-