use of org.spongycastle.asn1.DLSequence in project jruby-openssl by jruby.
the class EncContent method asASN1.
public ASN1Encodable asASN1() {
ASN1EncodableVector vector = new ASN1EncodableVector();
vector.add(ASN1Registry.nid2obj(contentType).toASN1Primitive());
vector.add(algorithm.toASN1Primitive());
if (encData != null) {
vector.add(new DERTaggedObject(false, 0, encData));
}
return new DLSequence(vector);
}
Aggregations