|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.security.auth.x500.X500Principal
public final class X500Principal
| Field Summary | |
|---|---|
static String |
CANONICAL
|
static String |
RFC1779
|
static String |
RFC2253
|
| Constructor Summary | |
|---|---|
X500Principal(byte[] encoded)
|
|
X500Principal(InputStream encoded)
|
|
X500Principal(String name)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
equals compares this object to another object. |
byte[] |
getEncoded()
|
String |
getName()
This method returns a String that names this
Principal. |
String |
getName(String format)
|
int |
hashCode()
hashCode returns a hash code for this object. |
String |
toString()
toString creates a printable string that represents this object for debugging purposes. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String CANONICAL
public static final String RFC1779
public static final String RFC2253
| Constructor Detail |
|---|
public X500Principal(String name)
public X500Principal(byte[] encoded)
public X500Principal(InputStream encoded)
| Method Detail |
|---|
public int hashCode()
ObjectThe default implementation returns System.identityHashCode(this).
hashCode in interface PrincipalhashCode in class Objectpublic boolean equals(Object o)
ObjectEquals must be symmetric (a.equals(b) == b.equals(a)), reflexive (a.equals(a)==true) and transitive (a.equals(b) && b.equals(c) IMPLIES (a.equals(c))) and not change over time (a.equals(b) == a.equals(b)). a.equals(null) should always return false.
If a.equals(b) is true for two objects a and b, then a.hashCode()==b.hashCode() must hold.
The default implementation of equals returns this==other.
equals in interface Principalequals in class Objecto - the other object.
public byte[] getEncoded()
public String getName()
PrincipalString that names this
Principal.
getName in interface PrincipalPrincipalpublic String getName(String format)
public String toString()
ObjectThe default implementation returns getClass().getName() + '@' + Integer.toHexString(hashCode()).
toString in interface PrincipaltoString in class Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||