コード例 #1
0
  public AttributeCertificate(ASN1Sequence seq) {
    if (seq.size() != 3) {
      throw new IllegalArgumentException("Bad sequence size: " + seq.size());
    }

    this.acinfo = AttributeCertificateInfo.getInstance(seq.getObjectAt(0));
    this.signatureAlgorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(1));
    this.signatureValue = DERBitString.getInstance(seq.getObjectAt(2));
  }
コード例 #2
0
ファイル: CrlIdentifier.java プロジェクト: fwenzel/pdftk
 private CrlIdentifier(ASN1Sequence seq) {
   if (seq.size() < 2 || seq.size() > 3) {
     throw new IllegalArgumentException();
   }
   this.crlIssuer = X500Name.getInstance(seq.getObjectAt(0));
   this.crlIssuedTime = ASN1UTCTime.getInstance(seq.getObjectAt(1));
   if (seq.size() > 2) {
     this.crlNumber = ASN1Integer.getInstance(seq.getObjectAt(2));
   }
 }