|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jndi.ldap.obj.LdapPrincipal
class LdapPrincipal
A principal from the LDAP directory.
Field Summary | |
---|---|
private int |
hash
|
private com.sun.jndi.ldap.LdapName |
ldapName
|
private java.lang.String |
name
|
Constructor Summary | |
---|---|
LdapPrincipal(java.lang.String name)
Create a principal. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Compares this principal to the specified object. |
private com.sun.jndi.ldap.LdapName |
getLdapName(java.lang.String name)
|
java.lang.String |
getName()
Returns the name of this principal. |
int |
hashCode()
Returns a hash code for this principal. |
java.lang.String |
toString()
Returns a string representation of this principal. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private com.sun.jndi.ldap.LdapName ldapName
private int hash
private java.lang.String name
Constructor Detail |
---|
public LdapPrincipal(java.lang.String name)
name
- The principal's string name.Method Detail |
---|
public boolean equals(java.lang.Object object)
equals
in interface java.security.Principal
equals
in class java.lang.Object
object
- The object to compare this principal against.
public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
public java.lang.String getName()
getName
in interface java.security.Principal
public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
private com.sun.jndi.ldap.LdapName getLdapName(java.lang.String name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |