public SingleResponse toResponse() throws Exception { return new SingleResponse(certId.toASN1Primitive(), certStatus, thisUpdate, nextUpdate, extensions); } }
public static SingleResponse getInstance( ASN1TaggedObject obj, boolean explicit) { return getInstance(ASN1Sequence.getInstance(obj, explicit)); }
public CertificateID getCertID() { return new CertificateID(resp.getCertID()); }
public SingleResp( SingleResponse resp) { this.resp = resp; this.extensions = resp.getSingleExtensions(); }
public Date getThisUpdate() { return OCSPUtils.extractDate(resp.getThisUpdate()); }
/** * return the NextUpdate value - note: this is an optional field so may * be returned as null. * * @return nextUpdate, or null if not present. */ public Date getNextUpdate() { if (resp.getNextUpdate() == null) { return null; } return OCSPUtils.extractDate(resp.getNextUpdate()); }
/** * Return the status object for the response - null indicates good. * * @return the status object for the response, null if it is good. */ public CertificateStatus getCertStatus() { CertStatus s = resp.getCertStatus(); if (s.getTagNo() == 0) { return null; // good } else if (s.getTagNo() == 1) { return new RevokedStatus(RevokedInfo.getInstance(s.getStatus())); } return new UnknownStatus(); }
public SingleResp( SingleResponse resp) { this.resp = resp; this.extensions = resp.getSingleExtensions(); }
public Date getThisUpdate() { try { return resp.getThisUpdate().getDate(); } catch (ParseException e) { throw new IllegalStateException("ParseException: " + e.getMessage()); } }
/** * return the NextUpdate value - note: this is an optional field so may * be returned as null. * * @return nextUpdate, or null if not present. */ public Date getNextUpdate() { if (resp.getNextUpdate() == null) { return null; } return OCSPUtils.extractDate(resp.getNextUpdate()); }
/** * Return the status object for the response - null indicates good. * * @return the status object for the response, null if it is good. */ public CertificateStatus getCertStatus() { CertStatus s = resp.getCertStatus(); if (s.getTagNo() == 0) { return null; // good } else if (s.getTagNo() == 1) { return new RevokedStatus(RevokedInfo.getInstance(s.getStatus())); } return new UnknownStatus(); }
public static SingleResponse getInstance( ASN1TaggedObject obj, boolean explicit) { return getInstance(ASN1Sequence.getInstance(obj, explicit)); }
public static SingleResponse getInstance( Object obj) { if (obj instanceof SingleResponse) { return (SingleResponse)obj; } else if (obj != null) { return new SingleResponse(ASN1Sequence.getInstance(obj)); } return null; }
public X509Extensions getSingleExtensions() { return X509Extensions.getInstance(resp.getSingleExtensions()); }
public CertificateID getCertID() { return new CertificateID(resp.getCertID()); }
public Date getThisUpdate() { return OCSPUtils.extractDate(resp.getThisUpdate()); }
/** * return the NextUpdate value - note: this is an optional field so may * be returned as null. * * @return nextUpdate, or null if not present. */ public Date getNextUpdate() { if (resp.getNextUpdate() == null) { return null; } try { return resp.getNextUpdate().getDate(); } catch (ParseException e) { throw new IllegalStateException("ParseException: " + e.getMessage()); } }
/** * Return the status object for the response - null indicates good. * * @return the status object for the response, null if it is good. */ public Object getCertStatus() { CertStatus s = resp.getCertStatus(); if (s.getTagNo() == 0) { return null; // good } else if (s.getTagNo() == 1) { return new RevokedStatus(RevokedInfo.getInstance(s.getStatus())); } return new UnknownStatus(); }
public SingleResp[] getResponses() { ASN1Sequence s = data.getResponses(); SingleResp[] rs = new SingleResp[s.size()]; for (int i = 0; i != rs.length; i++) { rs[i] = new SingleResp(SingleResponse.getInstance(s.getObjectAt(i))); } return rs; }
public SingleResponse toResponse() throws Exception { return new SingleResponse(certId.toASN1Object(), certStatus, thisUpdate, nextUpdate, extensions); } }