org.bouncycastle.ocsp

Class RevokedStatus

public class RevokedStatus extends Object implements CertificateStatus

wrapper for the RevokedInfo object
Constructor Summary
RevokedStatus(RevokedInfo info)
RevokedStatus(Date revocationDate, int reason)
Method Summary
intgetRevocationReason()
return the revocation reason.
DategetRevocationTime()
booleanhasRevocationReason()

Constructor Detail

RevokedStatus

public RevokedStatus(RevokedInfo info)

RevokedStatus

public RevokedStatus(Date revocationDate, int reason)

Method Detail

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

getRevocationTime

public Date getRevocationTime()

hasRevocationReason

public boolean hasRevocationReason()