|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.ldap.jaas.LdapRole
public class LdapRole
LdapRole provides a custom implementation for adding LDAP
principals to a Subject that represent roles.
| Constructor Summary | |
|---|---|
LdapRole(String name)
This creates a new LdapRole with the supplied name. |
|
| Method Summary | |
|---|---|
int |
compareTo(Principal p)
This compares the supplied object for order. |
boolean |
equals(Object o)
This returns the supplied Object is equal to this LdapRole. |
String |
getName()
This returns the name for this LdapRole. |
int |
hashCode()
This returns the hash code for this LdapRole. |
String |
toString()
This returns a String representation of this LdapRole. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LdapRole(String name)
LdapRole with the supplied name.
name - String| Method Detail |
|---|
public String getName()
LdapRole.
getName in interface PrincipalStringpublic boolean equals(Object o)
LdapRole.
equals in interface Principalequals in class Objecto - Object
booleanpublic int hashCode()
LdapRole.
hashCode in interface PrincipalhashCode in class Objectintpublic String toString()
LdapRole.
toString in interface PrincipaltoString in class ObjectStringpublic int compareTo(Principal p)
LdapRole is
always greater than any other object. Otherwise principals are compared
lexicographically on name.
compareTo in interface Comparable<Principal>p - Principal
int
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||