RevokedStatus (Bouncy Castle Library 1.54 API Specification)
Date: 2015-12-29

org.bouncycastle.cert.ocsp

## Class RevokedStatus

- java.lang.Object
- - org.bouncycastle.cert.ocsp.RevokedStatus

- All Implemented Interfaces:
    CertificateStatus

      public class RevokedStatus
      extends java.lang.Object
      implements CertificateStatus

  wrapper for the RevokedInfo object

- - ### Field Summary

    - ### Fields inherited from interface org.bouncycastle.cert.ocsp.CertificateStatus

      `GOOD`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `RevokedStatus(java.util.Date revocationDate, int reason)`
    `RevokedStatus(org.bouncycastle.asn1.ocsp.RevokedInfo info)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getRevocationReason()` return the revocation reason.
    `java.util.Date` | `getRevocationTime()`
    `boolean` | `hasRevocationReason()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RevokedStatus

          public RevokedStatus(org.bouncycastle.asn1.ocsp.RevokedInfo info)

    - #### RevokedStatus

          public RevokedStatus(java.util.Date revocationDate,
                       int reason)

  - ### Method Detail

    - #### getRevocationTime

          public java.util.Date 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:
        `java.lang.IllegalStateException` - if a reason is asked for and none is avaliable