public class X500Name
extends java.lang.Object
implements java.security.Principal
| Constructor and Description |
|---|
X500Name(java.io.InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
X500RDN |
componentAt(int i) |
boolean |
equals(java.lang.Object o)
Compares this X.500 name to the specified object.
|
java.lang.String |
getName() |
int |
hashCode() |
void |
input(java.io.InputStream is)
Initializes this X.500 name by reading its DER-encoding from
the specified input stream.
|
int |
length() |
void |
output(java.io.OutputStream os)
Output to the specified output stream.
|
java.lang.String |
toString()
Returns a string representation of this
X500Name. |
public X500Name(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic X500RDN componentAt(int i)
public void input(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic void output(java.io.OutputStream os)
throws java.io.IOException
Note: If the old API methods are used to define the attributes the the
order of output is as follows: C, ST, L, O, OU, CN, EMAIL.
java.io.IOExceptionpublic int length()
public java.lang.String getName()
getName in interface java.security.Principalpublic java.lang.String toString()
X500Name.
The output of this method is suitable for use in the constructor
X500Name(InputStream). The order of entries is the
reverse of the order produced by the output method.toString in interface java.security.PrincipaltoString in class java.lang.ObjectX500Name(InputStream),
output(OutputStream)public boolean equals(java.lang.Object o)
Compares this X.500 name to the specified object. Returns true if
and only if the argument is not null, and represents the
same X.500 name. For the purposes of this comparison operation, two
X.500 names are considered the same if and only if all the attributes
recognized by this implementation have the same value.
equals in interface java.security.Principalequals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.security.PrincipalhashCode in class java.lang.Object