|
JAAS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.security.auth.LdapPrincipal
public final class LdapPrincipal
A principal identified by a distinguished name as specified by RFC 2253.
After successful authentication, a user Principal
can be associated with a particular Subject
to augment that Subject with an additional identity.
Authorization decisions can then be based upon the
Principals that are associated with a Subject.
This class is immutable.
| Constructor Summary | |
|---|---|
LdapPrincipal(String name)
Creates an LDAP principal. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
Compares this principal to the specified object. |
String |
getName()
Returns the name originally used to create this principal. |
int |
hashCode()
Computes the hash code for this principal. |
String |
toString()
Creates a string representation of this principal's name in the format defined by RFC 2253. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LdapPrincipal(String name)
throws InvalidNameException
name - The principal's string distinguished name.
InvalidNameException - If a syntax violation is detected.
NullPointerException - If the name is
null.| Method Detail |
|---|
public boolean equals(Object object)
equals in interface Principalequals in class Objectobject - The object to compare this principal against.
public int hashCode()
hashCode in interface PrincipalhashCode in class Objectpublic String getName()
getName in interface Principalpublic String toString()
toString in interface PrincipaltoString in class Object
|
JAAS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||