Package org.faceless.pdf2
Class PKCS7SignatureHandler.OCSPResponse.SingleResponse
- java.lang.Object
-
- org.faceless.pdf2.PKCS7SignatureHandler.OCSPResponse.SingleResponse
-
- Enclosing class:
- PKCS7SignatureHandler.OCSPResponse
public static class PKCS7SignatureHandler.OCSPResponse.SingleResponse extends Object
Represents a SingleResponse item from the OCSP response
-
-
Field Summary
Fields Modifier and Type Field Description static int
STATUS_GOOD
static int
STATUS_REVOKED
static int
STATUS_UNKNOWN
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCertHashAlgorithm()
Return the OID of the CertID hash algorithmbyte[]
getCertIssuerKeyHash()
Return the hash of the Certificate Issuer public keybyte[]
getCertIssuerNameHash()
Return the hash of the Certificate Issuer DNBigInteger
getCertSerialNumber()
Return the certificate SerialNumber this response refers tobyte[]
getEncoded()
Return the DER encoded version of this objectCalendar
getNextUpdate()
Return the next update if specified, or null otherwiseCalendar
getRevocationTime()
If the certificate was revoked, return the revocation time, otherwise return nullint
getStatus()
Return the response status - one of STATUS_GOOD, STATUS_REVOKED or STATUS_UNKNOWNCalendar
getThisUpdate()
Return the "this update" fieldString
toString()
-
-
-
Method Detail
-
getEncoded
public byte[] getEncoded()
Return the DER encoded version of this object
-
getCertHashAlgorithm
public String getCertHashAlgorithm()
Return the OID of the CertID hash algorithm
-
getCertIssuerNameHash
public byte[] getCertIssuerNameHash()
Return the hash of the Certificate Issuer DN
-
getCertIssuerKeyHash
public byte[] getCertIssuerKeyHash()
Return the hash of the Certificate Issuer public key
-
getCertSerialNumber
public BigInteger getCertSerialNumber()
Return the certificate SerialNumber this response refers to
-
getStatus
public int getStatus()
Return the response status - one of STATUS_GOOD, STATUS_REVOKED or STATUS_UNKNOWN
-
getRevocationTime
public Calendar getRevocationTime()
If the certificate was revoked, return the revocation time, otherwise return null
-
getThisUpdate
public Calendar getThisUpdate()
Return the "this update" field
-
getNextUpdate
public Calendar getNextUpdate()
Return the next update if specified, or null otherwise
-
-