use of com.github.zhenwei.core.asn1.ASN1Primitive in project LinLong-Java by zhenwei1108.
the class ECGOST3410ParamSetParameters method toASN1Primitive.
public ASN1Primitive toASN1Primitive() {
ASN1EncodableVector v = new ASN1EncodableVector(6);
v.add(a);
v.add(b);
v.add(p);
v.add(q);
v.add(x);
v.add(y);
return new DERSequence(v);
}
use of com.github.zhenwei.core.asn1.ASN1Primitive in project LinLong-Java by zhenwei1108.
the class EncryptedObjectStoreData method toASN1Primitive.
public ASN1Primitive toASN1Primitive() {
ASN1EncodableVector v = new ASN1EncodableVector(2);
v.add(encryptionAlgorithm);
v.add(encryptedContent);
return new DERSequence(v);
}
use of com.github.zhenwei.core.asn1.ASN1Primitive in project LinLong-Java by zhenwei1108.
the class EncryptedPrivateKeyData method toASN1Primitive.
public ASN1Primitive toASN1Primitive() {
ASN1EncodableVector v = new ASN1EncodableVector(2);
v.add(encryptedPrivateKeyInfo);
v.add(new DERSequence(certificateChain));
return new DERSequence(v);
}
use of com.github.zhenwei.core.asn1.ASN1Primitive in project LinLong-Java by zhenwei1108.
the class LinkedCertificate method toASN1Primitive.
public ASN1Primitive toASN1Primitive() {
ASN1EncodableVector v = new ASN1EncodableVector(4);
v.add(digest);
v.add(certLocation);
if (certIssuer != null) {
v.add(new DERTaggedObject(false, 0, certIssuer));
}
if (cACerts != null) {
v.add(new DERTaggedObject(false, 1, cACerts));
}
return new DERSequence(v);
}
use of com.github.zhenwei.core.asn1.ASN1Primitive in project LinLong-Java by zhenwei1108.
the class ObjectData method toASN1Primitive.
public ASN1Primitive toASN1Primitive() {
ASN1EncodableVector v = new ASN1EncodableVector(6);
v.add(new ASN1Integer(type));
v.add(new DERUTF8String(identifier));
v.add(creationDate);
v.add(lastModifiedDate);
v.add(data);
if (comment != null) {
v.add(new DERUTF8String(comment));
}
return new DERSequence(v);
}
Aggregations