public static final class OCSPResponse.SingleResponse extends java.lang.Object implements OCSP.RevocationStatus
OCSP.RevocationStatus.CertStatus| Modifier and Type | Method and Description |
|---|---|
CertId |
getCertId()
Get the Cert ID that this SingleResponse is for.
|
OCSP.RevocationStatus.CertStatus |
getCertStatus()
Returns the revocation status.
|
java.util.Date |
getNextUpdate()
Get the
nextUpdate field from this SingleResponse. |
java.security.cert.CRLReason |
getRevocationReason()
Get the
revocationReason field for the
SingleResponse. |
java.util.Date |
getRevocationTime()
Get the
revocationTime field from this
SingleResponse. |
java.util.Map<java.lang.String,java.security.cert.Extension> |
getSingleExtensions()
Get the
singleExtensions for this SingleResponse. |
java.util.Date |
getThisUpdate()
Get the
thisUpdate field from this SingleResponse. |
java.lang.String |
toString()
Construct a string representation of a single OCSP response.
|
public OCSP.RevocationStatus.CertStatus getCertStatus()
OCSP.RevocationStatusgetCertStatus in interface OCSP.RevocationStatuspublic CertId getCertId()
CertId for this SingleResponsepublic java.util.Date getThisUpdate()
thisUpdate field from this SingleResponse.Date object containing the thisUpdate datepublic java.util.Date getNextUpdate()
nextUpdate field from this SingleResponse.Date object containing the nexUpdate date or
null if a nextUpdate field is not present in the response.public java.util.Date getRevocationTime()
revocationTime field from this
SingleResponse.getRevocationTime in interface OCSP.RevocationStatusDate object containing the revocationTime date or
null if the SingleResponse does not have a status
of REVOKED.public java.security.cert.CRLReason getRevocationReason()
revocationReason field for the
SingleResponse.getRevocationReason in interface OCSP.RevocationStatusCRLReason containing the revocation reason, or
null if a revocation reason was not provided or the
response status is not REVOKED.public java.util.Map<java.lang.String,java.security.cert.Extension> getSingleExtensions()
singleExtensions for this SingleResponse.getSingleExtensions in interface OCSP.RevocationStatusMap of Extension objects, keyed by
their OID value in string form.public java.lang.String toString()
toString in class java.lang.Object