public class LdapRole extends Object implements Principal, Serializable, Comparable<Principal>
LdapRole
provides a custom implementation for adding LDAP
principals to a Subject
that represent roles.Constructor and Description |
---|
LdapRole(String name)
This creates a new
LdapRole with the supplied name. |
Modifier and Type | Method and Description |
---|---|
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 . |
public LdapRole(String name)
LdapRole
with the supplied name.name
- String
public String getName()
LdapRole
.public boolean equals(Object o)
LdapRole
.public int hashCode()
LdapRole
.public String toString()
LdapRole
.public 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
Copyright © 2014. All rights reserved.