public class CertStatus extends java.lang.Object implements ASN1Type
CertStatus ::= SEQUENCE {
certHash OCTET STRING,
certReqId INTEGER,
statusInfo PKIStatusInfo OPTIONAL
}
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
m_certhash |
| Constructor and Description |
|---|
CertStatus(ASN1Object object)
Creates a Certificate status object from an ASN1Object
|
CertStatus(X509Certificate cert,
java.math.BigInteger certRequestId,
PKIStatusInfo statusInfo)
The constructor for the CertStatus object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an CertStatus structure from an
ASN1Object. |
byte[] |
getCertHash() |
java.math.BigInteger |
getCertRequestId() |
PKIStatusInfo |
getPKIStatusInfo() |
ASN1Object |
toASN1Object()
Encodes this
CertStatus object as an ASN1Object. |
public CertStatus(X509Certificate cert, java.math.BigInteger certRequestId, PKIStatusInfo statusInfo) throws java.security.NoSuchAlgorithmException
CertStatus ::= SEQUENCE {
certHash OCTET STRING,
-- the hash of the certificate, using the same hash algorithm
-- as is used to create and verify the certificate signature
cert - The X509Certificate used to create the CertHashcertRequestId - The Certificate Request ID, as a BigIntegerstatusInfo - the optional PKIStatus info. If this is set to null, it indicates
acceptance of the certificate.java.security.NoSuchAlgorithmException - if the Hash Algorithm used for the Certificate cannot be foundpublic CertStatus(ASN1Object object) throws CodingException
CodingExceptionpublic ASN1Object toASN1Object()
CertStatus object as an ASN1Object.toASN1Object in interface ASN1Typepublic byte[] getCertHash()
public java.math.BigInteger getCertRequestId()
public PKIStatusInfo getPKIStatusInfo()
public void decode(ASN1Object obj) throws CodingException
ASN1Object.decode in interface ASN1Typeobj - an ASN.1 representation of a CertStatus structureCodingException - thrown if an errors occurs while decoding the ANS1Object