Methods Summary |
---|
public boolean | equals(java.lang.Object object)Compares this principal to the specified object.
if (this == object) {
return true;
}
if (object instanceof LdapPrincipal) {
try {
return
name.equals(getLdapName(((LdapPrincipal)object).getName()));
} catch (InvalidNameException e) {
return false;
}
}
return false;
|
private javax.naming.ldap.LdapName | getLdapName(java.lang.String name)
return new LdapName(name);
|
public java.lang.String | getName()Returns the name originally used to create this principal.
return nameString;
|
public int | hashCode()Computes the hash code for this principal.
return name.hashCode();
|
public java.lang.String | toString()Creates a string representation of this principal's name in the format
defined by RFC 2253.
If the name has zero components an empty string is returned.
return name.toString();
|