org.bouncycastle.ocsp

Class RevokedStatus

Implemented Interfaces:
CertificateStatus

public class RevokedStatus
extends java.lang.Object
implements CertificateStatus

wrapper for the RevokedInfo object

Fields inherited from interface org.bouncycastle.ocsp.CertificateStatus

GOOD

Constructor Summary

RevokedStatus(Date revocationDate, int reason)
RevokedStatus(RevokedInfo info)

Method Summary

int
getRevocationReason()
return the revocation reason.
Date
getRevocationTime()
boolean
hasRevocationReason()

Constructor Details

RevokedStatus

public RevokedStatus(Date revocationDate,
                     int reason)

RevokedStatus

public RevokedStatus(RevokedInfo info)

Method Details

getRevocationReason

public int getRevocationReason()
return the revocation reason. Note: this field is optional, test for it with hasRevocationReason() first.

getRevocationTime

public Date getRevocationTime()

hasRevocationReason

public boolean hasRevocationReason()