Class RevokedStatus
java.lang.Object
org.bouncycastle.cert.ocsp.RevokedStatus
- All Implemented Interfaces:
CertificateStatus
wrapper for the RevokedInfo object
-
Field Summary
Fields inherited from interface CertificateStatus
GOOD -
Constructor Summary
ConstructorsConstructorDescriptionRevokedStatus(Date revocationDate) RevokedStatus(Date revocationDate, int reason) RevokedStatus(org.bouncycastle.asn1.ocsp.RevokedInfo info) -
Method Summary
Modifier and TypeMethodDescriptionintreturn the revocation reason.boolean
-
Constructor Details
-
RevokedStatus
public RevokedStatus(org.bouncycastle.asn1.ocsp.RevokedInfo info) -
RevokedStatus
-
RevokedStatus
-
-
Method Details
-
getRevocationTime
-
hasRevocationReason
public boolean hasRevocationReason() -
getRevocationReason
public int getRevocationReason()return the revocation reason. Note: this field is optional, test for it with hasRevocationReason() first.- Returns:
- the revocation reason value.
- Throws:
IllegalStateException- if a reason is asked for and none is avaliable
-