Example #1
0
  /**
   * 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();
  }
Example #2
0
 public boolean hasRevocationReason() {
   return (info.getRevocationReason() != null);
 }
Example #3
0
 public Date getRevocationTime() {
   return OCSPUtils.extractDate(info.getRevocationTime());
 }