コード例 #1
0
  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;
  }
コード例 #2
0
  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;
  }
コード例 #3
0
  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);
    }
  }
コード例 #4
0
ファイル: CRLBag.java プロジェクト: playerdrafter/oobd
  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;
  }
コード例 #5
0
ファイル: OOBCertHash.java プロジェクト: playerdrafter/oobd
  public static OOBCertHash getInstance(Object o) {
    if (o instanceof OOBCertHash) {
      return (OOBCertHash) o;
    }

    if (o != null) {
      return new OOBCertHash(ASN1Sequence.getInstance(o));
    }

    return null;
  }
コード例 #6
0
ファイル: GenMsgContent.java プロジェクト: playerdrafter/oobd
  public static GenMsgContent getInstance(Object o) {
    if (o instanceof GenMsgContent) {
      return (GenMsgContent) o;
    }

    if (o != null) {
      return new GenMsgContent(ASN1Sequence.getInstance(o));
    }

    return null;
  }
コード例 #7
0
 public static TimeStampTokenEvidence getInstance(ASN1TaggedObject tagged, boolean explicit) {
   return getInstance(ASN1Sequence.getInstance(tagged, explicit));
 }
コード例 #8
0
 public static BasicOCSPResponse getInstance(ASN1TaggedObject obj, boolean explicit) {
   return getInstance(ASN1Sequence.getInstance(obj, explicit));
 }