public class LdapPrincipal extends Object implements Principal, Serializable, Comparable<Principal>
LdapPrincipal provides a custom implementation for adding LDAP
principals to a Subject.| Modifier and Type | Field and Description |
|---|---|
protected static int |
HASH_CODE_SEED
hash code seed.
|
| Constructor and Description |
|---|
LdapPrincipal(String name)
This creates a new
LdapPrincipal 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
LdapPrincipal. |
LdapAttributes |
getLdapAttributes()
This returns the ldap attributes for this
LdapPrincipal. |
String |
getName()
This returns the name for this
LdapPrincipal. |
int |
hashCode()
This returns the hash code for this
LdapPrincipal. |
String |
toString()
This returns a String representation of this
LdapPrincipal. |
protected static final int HASH_CODE_SEED
public LdapPrincipal(String name)
LdapPrincipal with the supplied name.name - Stringpublic String getName()
LdapPrincipal.public LdapAttributes getLdapAttributes()
LdapPrincipal.LdapAttributespublic boolean equals(Object o)
LdapPrincipal.public int hashCode()
LdapPrincipal.public String toString()
LdapPrincipal.public int compareTo(Principal p)
LdapPrincipal is
always less than any other object. Otherwise principals are compared
lexicographically on name.compareTo in interface Comparable<Principal>p - PrincipalintCopyright © 2014. All rights reserved.