org.spongycastle.asn1.ASN1EncodableVector.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(78)

本文整理了Java中org.spongycastle.asn1.ASN1EncodableVector.<init>()方法的一些代码示例,展示了ASN1EncodableVector.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ASN1EncodableVector.<init>()方法的具体详情如下:
包路径:org.spongycastle.asn1.ASN1EncodableVector
类名称:ASN1EncodableVector
方法名:<init>

ASN1EncodableVector.<init>介绍

[英]Base constructor.
[中]基本构造函数。

代码示例

代码示例来源:origin: com.madgag.spongycastle/core

public SigningCertificateV2(
  ESSCertIDv2[] certs)
{
  ASN1EncodableVector v = new ASN1EncodableVector();
  for (int i=0; i < certs.length; i++)
  {
    v.add(certs[i]);
  }
  this.certs = new DERSequence(v);
}

代码示例来源:origin: com.madgag.spongycastle/core

public GenRepContent(InfoTypeAndValue[] itv)
{
  ASN1EncodableVector v = new ASN1EncodableVector();
  for (int i = 0; i < itv.length; i++)
  {
    v.add(itv[i]);
  }
  content = new DERSequence(v);
}

代码示例来源:origin: com.madgag.spongycastle/core

public ASN1Primitive toASN1Primitive()
  {
    ASN1EncodableVector  v = new ASN1EncodableVector();

    v.add(func);
    v.add(scheme);

    return new DERSequence(v);
  }
}

代码示例来源:origin: com.madgag.spongycastle/core

public ASN1Primitive toASN1Primitive()
  {
    ASN1EncodableVector v = new ASN1EncodableVector();

    v.add(kem);
    v.add(dem);

    return new DERSequence(v);
  }
}

代码示例来源:origin: com.madgag.spongycastle/core

public ASN1Primitive toASN1Primitive()
  {
    ASN1EncodableVector  v = new ASN1EncodableVector();

    if (version != null)
    {
      v.add(version);
    }

    v.add(iv);

    return new DERSequence(v);
  }
}

代码示例来源:origin: com.madgag.spongycastle/core

public ASN1Primitive toASN1Primitive()
  {
    ASN1EncodableVector v = new ASN1EncodableVector();

    v.add(keyEncryptionAlgorithm);
    v.add(encryptedKeyData);

    return new DERSequence(v);
  }
}

代码示例来源:origin: com.madgag.spongycastle/core

public ASN1Primitive toASN1Primitive()
  {
    ASN1EncodableVector v = new ASN1EncodableVector();

    v.add(storeData);
    v.add(integrityCheck);

    return new DERSequence(v);
  }
}

代码示例来源:origin: com.madgag.spongycastle/core

/** 
   * Produce an object suitable for an ASN1OutputStream.
   */
  public ASN1Primitive toASN1Primitive()
  {
    ASN1EncodableVector v = new ASN1EncodableVector();

    v.add(keyAttrId);
    v.add(keyAttr);

    return new DERSequence(v);
  }
}

代码示例来源:origin: com.madgag.spongycastle/core

public ASN1Primitive toASN1Primitive()
  {
    ASN1EncodableVector v = new ASN1EncodableVector();

    v.add(sessionEncryptedKey);
    if (transportParameters != null)
    {
      v.add(new DERTaggedObject(false, 0, transportParameters));
    }

    return new DERSequence(v);
  }
}

代码示例来源:origin: com.madgag.spongycastle/core

public ASN1Primitive toASN1Primitive()
  {
    ASN1EncodableVector v = new ASN1EncodableVector();

    v.add(version);
    v.add(compressionAlgorithm);
    v.add(encapContentInfo);

    return new BERSequence(v);
  }
}

代码示例来源:origin: com.madgag.spongycastle/core

public ASN1Primitive toASN1Primitive()
  {
    ASN1EncodableVector seq = new ASN1EncodableVector();
    seq.add(currency);
    seq.add(amount);
    seq.add(exponent); 
    
    return new DERSequence(seq);
  }
}

代码示例来源:origin: com.madgag.spongycastle/core

public PublishTrustAnchors(BigInteger seqNumber, AlgorithmIdentifier hashAlgorithm, byte[][] anchorHashes)
{
  this.seqNumber = new ASN1Integer(seqNumber);
  this.hashAlgorithm = hashAlgorithm;
  ASN1EncodableVector v = new ASN1EncodableVector();
  for (int i = 0; i != anchorHashes.length; i++)
  {
     v.add(new DEROctetString(Arrays.clone(anchorHashes[i])));
  }
  this.anchorHashes = new DERSequence(v);
}

代码示例来源:origin: com.madgag.spongycastle/core

private void internalAddCRLEntry(ASN1Integer userCertificate, Time revocationDate, ASN1Sequence extensions)
{
  ASN1EncodableVector v = new ASN1EncodableVector();
  v.add(userCertificate);
  v.add(revocationDate);
  if (extensions != null)
  {
    v.add(extensions);
  }
  addCRLEntry(new DERSequence(v));
}

代码示例来源:origin: com.madgag.spongycastle/core

public ASN1Primitive toASN1Primitive()
{
  ASN1EncodableVector v = new ASN1EncodableVector();
  v.add(version);
  v.add(digestAlgorithm);
  v.add(encapContentInfo);
  v.add(digest);
  return new BERSequence(v);
}

代码示例来源:origin: com.madgag.spongycastle/core

public ASN1Primitive toASN1Primitive()
  {
    ASN1EncodableVector v = new ASN1EncodableVector();

    v.add(bagId);
    v.add(new DLTaggedObject(true, 0, bagValue));

    if (bagAttributes != null)
    {
      v.add(bagAttributes);
    }

    return new DLSequence(v);
  }
}

代码示例来源:origin: com.madgag.spongycastle/core

public EncryptedData(
  ASN1ObjectIdentifier contentType,
  AlgorithmIdentifier     encryptionAlgorithm,
  ASN1Encodable content)
{
  ASN1EncodableVector v = new ASN1EncodableVector();
  v.add(contentType);
  v.add(encryptionAlgorithm.toASN1Primitive());
  v.add(new BERTaggedObject(false, 0, content));
  data = new BERSequence(v);
}

代码示例来源:origin: com.madgag.spongycastle/core

public ASN1Primitive toASN1Primitive()
  {
    ASN1EncodableVector v = new ASN1EncodableVector();
    v.add(version);
    v.add(subject);
    v.add(subjectPublicKeyInfo);
    v.add(new DERTaggedObject(false, 0, attributes));
    return new DERSequence(v);
  }
}

代码示例来源:origin: com.madgag.spongycastle/core

public ASN1Primitive toASN1Primitive()
  {
    ASN1EncodableVector v = new ASN1EncodableVector();

    v.add(keyGenAlgorithm);
    v.add(macAlgorithm);
    v.add(new DEROctetString(getWitness()));

    return new DERSequence(v);
  }
}

代码示例来源:origin: com.madgag.spongycastle/core

public ASN1Primitive toASN1Primitive()
  {
    ASN1EncodableVector  v = new ASN1EncodableVector();

    v.add(new ASN1Integer(keySize));
    v.add(p);
    v.add(q);
    v.add(a);

    return new DERSequence(v);
  }
}

代码示例来源:origin: com.madgag.spongycastle/core

public ASN1Primitive toASN1Primitive()
  {
    ASN1EncodableVector  v = new ASN1EncodableVector();

    v.add(a);
    v.add(b);
    v.add(p);
    v.add(q);
    v.add(x);
    v.add(y);

    return new DERSequence(v);
  }
}

相关文章

微信公众号

最新文章

更多