コード例 #1
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);
    }
  }
コード例 #2
0
ファイル: OOBCertHash.java プロジェクト: playerdrafter/oobd
  private OOBCertHash(ASN1Sequence seq) {
    int index = seq.size() - 1;

    hashVal = DERBitString.getInstance(seq.getObjectAt(index--));

    for (int i = index; i >= 0; i--) {
      ASN1TaggedObject tObj = (ASN1TaggedObject) seq.getObjectAt(i);

      if (tObj.getTagNo() == 0) {
        hashAlg = AlgorithmIdentifier.getInstance(tObj, true);
      } else {
        certId = CertId.getInstance(tObj, true);
      }
    }
  }
コード例 #3
0
ファイル: GenMsgContent.java プロジェクト: playerdrafter/oobd
  public InfoTypeAndValue[] toInfoTypeAndValueArray() {
    InfoTypeAndValue[] result = new InfoTypeAndValue[content.size()];

    for (int i = 0; i != result.length; i++) {
      result[i] = InfoTypeAndValue.getInstance(content.getObjectAt(i));
    }

    return result;
  }
コード例 #4
0
ファイル: CRLBag.java プロジェクト: playerdrafter/oobd
 private CRLBag(ASN1Sequence seq) {
   this.crlId = (ASN1ObjectIdentifier) seq.getObjectAt(0);
   this.crlValue = ((DERTaggedObject) seq.getObjectAt(1)).getObject();
 }