use of com.github.zhenwei.core.asn1.DLTaggedObject in project robovm by robovm.
the class SafeBag method toASN1Primitive.
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);
}
use of com.github.zhenwei.core.asn1.DLTaggedObject in project jmulticard by ctt-gob-es.
the class ContentInfo method toASN1Primitive.
/**
* Produce an object suitable for an ASN1OutputStream.
*/
public ASN1Primitive toASN1Primitive() {
ASN1EncodableVector v = new ASN1EncodableVector(2);
v.add(contentType);
if (content != null) {
if (isDefiniteLength) {
v.add(new DLTaggedObject(0, content));
} else {
v.add(new BERTaggedObject(0, content));
}
}
return isDefiniteLength ? (ASN1Primitive) new DLSequence(v) : (ASN1Primitive) new BERSequence(v);
}
use of com.github.zhenwei.core.asn1.DLTaggedObject in project LinLong-Java by zhenwei1108.
the class SafeBag method toASN1Primitive.
public ASN1Primitive toASN1Primitive() {
ASN1EncodableVector v = new ASN1EncodableVector(3);
v.add(bagId);
v.add(new DLTaggedObject(true, 0, bagValue));
if (bagAttributes != null) {
v.add(bagAttributes);
}
return new DLSequence(v);
}
Aggregations