|
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
Principal
s 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 Principal
equals
in class Object
object
- The object to compare this principal against.
Object.hashCode()
,
Hashtable
public int hashCode()
hashCode
in interface Principal
hashCode
in class Object
Object.equals(java.lang.Object)
,
Hashtable
public String getName()
getName
in interface Principal
public String toString()
toString
in interface Principal
toString
in class Object
|
JAAS | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2010 Sun Microsystems, Inc. All rights reserved. Use is subject to the terms of the GNU General Public License.