/** * @param attribute */ public void addAttribute(Attribute attribute) { attributes.add(attribute); }
private void addOptional(ASN1EncodableVector v, ASN1Encodable obj) { if (obj != null) { v.add(obj); } } }
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); }
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); }
public GenRepContent(InfoTypeAndValue[] itv) { ASN1EncodableVector v = new ASN1EncodableVector(); for (int i = 0; i < itv.length; i++) { v.add(itv[i]); } content = new DERSequence(v); }
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); }