Skip navigation links

Oracle Fusion Middleware JCE Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10697-04


oracle.security.crypto.jce.cert
Class X500Name

java.lang.Object
  extended by oracle.security.crypto.jce.cert.X500Name

All Implemented Interfaces:
java.security.Principal, oracle.security.crypto.asn1.ASN1Object, oracle.security.crypto.util.Streamable

public class X500Name
extends java.lang.Object
implements java.security.Principal, oracle.security.crypto.asn1.ASN1Object

Constructor Summary
X500Name(java.io.InputStream is)
           

 

Method Summary
 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.

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

 

Constructor Detail

X500Name

public X500Name(java.io.InputStream is)
         throws java.io.IOException
Throws:
java.io.IOException

Method Detail

componentAt

public X500RDN componentAt(int i)

input

public void input(java.io.InputStream is)
           throws java.io.IOException
Initializes this X.500 name by reading its DER-encoding from the specified input stream.
Specified by:
input in interface oracle.security.crypto.util.Streamable
Throws:
java.io.IOException

output

public void output(java.io.OutputStream os)
            throws java.io.IOException
Output to the specified output stream. The order of attributes is the same as the order in which they were defined (attributes with null values will be omitted).

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.

Specified by:
output in interface oracle.security.crypto.util.Streamable
Throws:
java.io.IOException

length

public int length()
Specified by:
length in interface oracle.security.crypto.util.Streamable

getName

public java.lang.String getName()
Specified by:
getName in interface java.security.Principal

toString

public java.lang.String toString()
Returns a string representation of this X500Name. The output of this method is suitable for use in the constructor X500Name(String). The order of entries is the reverse of the order produced by the output method.
Specified by:
toString in interface java.security.Principal
Overrides:
toString in class java.lang.Object
See Also:
#X500Name(String), output(OutputStream)

equals

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.

Specified by:
equals in interface java.security.Principal
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface java.security.Principal
Overrides:
hashCode in class java.lang.Object

Skip navigation links

Oracle Fusion Middleware JCE Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10697-04


Copyright © 2005, 2011 , Oracle. All rights reserved.