Skip navigation links

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

E10674-04


oracle.security.crypto.cert
Class IssuerAndSerialNo

java.lang.Object
  extended by oracle.security.crypto.cert.IssuerAndSerialNo

All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, oracle.security.crypto.asn1.ASN1Object, oracle.security.crypto.util.Streamable

public final class IssuerAndSerialNo
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object, java.io.Externalizable

Holds a X509 certificate's issuer DN and serial number, which is a way of identifying a particular certificate that is common to several PKIX and PKCS protocols.

See Also:
Serialized Form

Constructor Summary
IssuerAndSerialNo()
          Creates a new empty instance.
IssuerAndSerialNo(java.io.InputStream is)
           
IssuerAndSerialNo(X500Name issuer, java.math.BigInteger serialNo)
           
IssuerAndSerialNo(X509 cert)
          Creates a new IssuerAndSerialNo by extracting the appropriate components from the given certificate.

 

Method Summary
 boolean equals(java.lang.Object o)
           
 byte[] getEncoded()
           
 X500Name getIssuer()
           
 java.math.BigInteger getSerialNo()
           
 int hashCode()
           
 void input(java.io.InputStream is)
           
 int length()
           
 void output(java.io.OutputStream os)
           
 void readExternal(java.io.ObjectInput is)
           
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput os)
           

 

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

 

Constructor Detail

IssuerAndSerialNo

public IssuerAndSerialNo()
Creates a new empty instance. This constructor is to be used with serialization or with the input method.

IssuerAndSerialNo

public IssuerAndSerialNo(X500Name issuer,
                         java.math.BigInteger serialNo)

IssuerAndSerialNo

public IssuerAndSerialNo(X509 cert)
Creates a new IssuerAndSerialNo by extracting the appropriate components from the given certificate.

IssuerAndSerialNo

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

Method Detail

getIssuer

public X500Name getIssuer()

getSerialNo

public java.math.BigInteger getSerialNo()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

input

public void input(java.io.InputStream is)
           throws java.io.IOException
Specified by:
input in interface oracle.security.crypto.util.Streamable
Throws:
java.io.IOException

getEncoded

public byte[] getEncoded()

output

public void output(java.io.OutputStream os)
            throws java.io.IOException
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

writeExternal

public void writeExternal(java.io.ObjectOutput os)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput is)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

Skip navigation links

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

E10674-04


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