/**
   * return the revocation reason. Note: this field is optional, test for it with
   * hasRevocationReason() first.
   *
   * @return the revocation reason value.
   * @exception IllegalStateException if a reason is asked for and none is avaliable
   */
  public int getRevocationReason() {
    if (info.getRevocationReason() == null) {
      throw new IllegalStateException("attempt to get a reason where none is available");
    }

    return info.getRevocationReason().getValue().intValue();
  }
 public boolean hasRevocationReason() {
   return (info.getRevocationReason() != null);
 }
 public Date getRevocationTime() {
   return OCSPUtils.extractDate(info.getRevocationTime());
 }