public final class IssuerAndSerialNo
extends java.lang.Object
implements java.io.Externalizable
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.| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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) |
public IssuerAndSerialNo()
public IssuerAndSerialNo(X500Name issuer, java.math.BigInteger serialNo)
public IssuerAndSerialNo(X509 cert)
IssuerAndSerialNo by extracting
the appropriate components from the given certificate.public IssuerAndSerialNo(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic X500Name getIssuer()
public java.math.BigInteger getSerialNo()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void input(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic byte[] getEncoded()
public void output(java.io.OutputStream os)
throws java.io.IOException
java.io.IOExceptionpublic int length()
public void writeExternal(java.io.ObjectOutput os)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput is)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundException