Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java Authentication and Authorization Service DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.security.auth.LdapPrincipal
public final class LdapPrincipal extends Object implements Principal, Serializable
A principal identified by a distinguished name as specified by
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 and Description |
---|
LdapPrincipal(String name)
Creates an LDAP principal. |
Modifier and Type | Method and Description |
---|---|
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 |
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.public int hashCode()
hashCode
in interface Principal
hashCode
in class Object
public String getName()
getName
in interface Principal
public String toString()
toString
in interface Principal
toString
in class Object
|
Java Authentication and Authorization Service DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1998, 2010, Oracle Corporation. All rights reserved.