public class LdapRole extends Object implements Principal, Serializable, Comparable<Principal>
Modifier and Type | Field and Description |
---|---|
private static int |
HASH_CODE_SEED
hash code seed.
|
private String |
roleName
LDAP role name.
|
private static long |
serialVersionUID
serial version uid.
|
Constructor and Description |
---|
LdapRole(String name)
Creates a new ldap role with the supplied name.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Principal p) |
boolean |
equals(Object o) |
String |
getName() |
int |
hashCode() |
static Set<LdapRole> |
toRoles(Collection<LdapAttribute> attributes)
Iterates over the supplied attributes and returns all values as a set of ldap roles.
|
static Set<LdapRole> |
toRoles(LdapEntry entry)
Iterates over the supplied entry and returns all attributes as a set of ldap roles.
|
static Set<LdapRole> |
toRoles(SearchResult result)
Iterates over the supplied result and returns all attributes as a set of ldap roles.
|
String |
toString() |
private static final int HASH_CODE_SEED
private static final long serialVersionUID
private final String roleName
public LdapRole(String name)
name
- of this rolepublic boolean equals(Object o)
public int hashCode()
public String toString()
public int compareTo(Principal p)
compareTo
in interface Comparable<Principal>
public static Set<LdapRole> toRoles(SearchResult result)
result
- to readpublic static Set<LdapRole> toRoles(LdapEntry entry)
entry
- to readpublic static Set<LdapRole> toRoles(Collection<LdapAttribute> attributes)
attributes
- to readCopyright © 2003-2019 Virginia Tech. All Rights Reserved.