public static BasicOCSPResponse getInstance(Object obj) { if (obj instanceof BasicOCSPResponse) { return (BasicOCSPResponse) obj; } else if (obj != null) { return new BasicOCSPResponse(ASN1Sequence.getInstance(obj)); } return null; }
public static TimeStampTokenEvidence getInstance(Object obj) { if (obj instanceof TimeStampTokenEvidence) { return (TimeStampTokenEvidence) obj; } else if (obj != null) { return new TimeStampTokenEvidence(ASN1Sequence.getInstance(obj)); } return null; }
private BasicOCSPResponse(ASN1Sequence seq) { this.tbsResponseData = ResponseData.getInstance(seq.getObjectAt(0)); this.signatureAlgorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(1)); this.signature = (DERBitString) seq.getObjectAt(2); if (seq.size() > 3) { this.certs = ASN1Sequence.getInstance((ASN1TaggedObject) seq.getObjectAt(3), true); } }
public static CRLBag getInstance(Object o) { if (o instanceof CRLBag) { return (CRLBag) o; } else if (o != null) { return new CRLBag(ASN1Sequence.getInstance(o)); } return null; }
public static OOBCertHash getInstance(Object o) { if (o instanceof OOBCertHash) { return (OOBCertHash) o; } if (o != null) { return new OOBCertHash(ASN1Sequence.getInstance(o)); } return null; }
public static GenMsgContent getInstance(Object o) { if (o instanceof GenMsgContent) { return (GenMsgContent) o; } if (o != null) { return new GenMsgContent(ASN1Sequence.getInstance(o)); } return null; }
public static TimeStampTokenEvidence getInstance(ASN1TaggedObject tagged, boolean explicit) { return getInstance(ASN1Sequence.getInstance(tagged, explicit)); }
public static BasicOCSPResponse getInstance(ASN1TaggedObject obj, boolean explicit) { return getInstance(ASN1Sequence.getInstance(obj, explicit)); }