|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.jaas.LdapRole
public class LdapRole
Provides a custom implementation for adding LDAP principals to a subject that represent roles.
| Constructor Summary | |
|---|---|
LdapRole(String name)
Creates a new ldap role with the supplied name. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LdapRole(String name)
name - of this role| Method Detail |
|---|
public String getName()
getName in interface Principalpublic boolean equals(Object o)
equals in interface Principalequals in class Objectpublic int hashCode()
hashCode in interface PrincipalhashCode in class Objectpublic String toString()
toString in interface PrincipaltoString in class Objectpublic int compareTo(Principal p)
compareTo in interface Comparable<Principal>public static Set<LdapRole> toRoles(SearchResult result)
result - to read
public static Set<LdapRole> toRoles(LdapEntry entry)
entry - to read
public static Set<LdapRole> toRoles(Collection<LdapAttribute> attributes)
attributes - to read
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||