public class GetCert
extends java.lang.Object
| Constructor and Description |
|---|
GetCert()
Creates an empty
GetCert instance. |
GetCert(GeneralName issuerName, java.math.BigInteger serialNo)
Creates a
GetCert instance with the specified values. |
GetCert(java.io.InputStream is)
Create a new
GetCert by reading from the specified input stream. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Compare this
GetCert to the specified object. |
GeneralName |
getIssuerName()
Returns the certificate issuer's name.
|
java.math.BigInteger |
getSerialNo()
Returns the certificate serial number.
|
void |
input(java.io.InputStream is)
Create a new
GetCert by reading from the specified input stream. |
int |
length()
Returns the length of this object's encoding.
|
void |
output(java.io.OutputStream os)
Outputs the
GetCert to the specified output stream. |
void |
setIssuerName(GeneralName issuerName)
Sets the certificate issuer's name.
|
void |
setSerialNo(java.math.BigInteger serialNo)
Sets the certificate serial number.
|
public GetCert()
GetCert instance.public GetCert(GeneralName issuerName, java.math.BigInteger serialNo)
GetCert instance with the specified values.issuerName - The name of the certificate issuer.serialNo - The Serial Number of the certificate.
public GetCert(java.io.InputStream is)
throws java.io.IOException
GetCert by reading from the specified input stream.is - The input stream containing the encoded GetCert.java.io.IOException - The input encoding is incorrect or an I/O error occurs.public void setIssuerName(GeneralName issuerName)
issuerName - The GeneralName of the certificate issuer.public GeneralName getIssuerName()
GeneralName of the certificate issuer.public void setSerialNo(java.math.BigInteger serialNo)
serialNo - The serial number of the certificate.public java.math.BigInteger getSerialNo()
public void input(java.io.InputStream is)
throws java.io.IOException
GetCert by reading from the specified input stream.is - The input stream containing the encoded GetCert.java.io.IOException - The input encoding is incorrect or an I/O error occurs.
public void output(java.io.OutputStream os)
throws java.io.IOException
GetCert to the specified output stream.os - The output stream.java.io.IOException - An I/O error occurs.public int length()
public boolean equals(java.lang.Object o)
GetCert to the specified object. Returns true if and only if the argument is not null and is an GetCert object which has the same DER encoding as this object.equals in class java.lang.Object