use of org.openecard.bouncycastle.asn1.ASN1EncodableVector in project XobotOS by xamarin.
the class CertBag method toASN1Object.
public DERObject toASN1Object() {
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(certId);
v.add(new DERTaggedObject(0, certValue));
return new DERSequence(v);
}
use of org.openecard.bouncycastle.asn1.ASN1EncodableVector in project XobotOS by xamarin.
the class CertificationRequest method toASN1Object.
public DERObject toASN1Object() {
// Construct the CertificateRequest
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(reqInfo);
v.add(sigAlgId);
v.add(sigBits);
return new DERSequence(v);
}
use of org.openecard.bouncycastle.asn1.ASN1EncodableVector in project XobotOS by xamarin.
the class ContentInfo method toASN1Object.
/**
* Produce an object suitable for an ASN1OutputStream.
* <pre>
* ContentInfo ::= SEQUENCE {
* contentType ContentType,
* content
* [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL }
* </pre>
*/
public DERObject toASN1Object() {
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(contentType);
if (content != null) {
v.add(new BERTaggedObject(0, content));
}
return new BERSequence(v);
}
use of org.openecard.bouncycastle.asn1.ASN1EncodableVector in project XobotOS by xamarin.
the class AttCertValidityPeriod method toASN1Object.
/**
* Produce an object suitable for an ASN1OutputStream.
* <pre>
* AttCertValidityPeriod ::= SEQUENCE {
* notBeforeTime GeneralizedTime,
* notAfterTime GeneralizedTime
* }
* </pre>
*/
public DERObject toASN1Object() {
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(notBeforeTime);
v.add(notAfterTime);
return new DERSequence(v);
}
use of org.openecard.bouncycastle.asn1.ASN1EncodableVector in project XobotOS by xamarin.
the class Attribute method toASN1Object.
/**
* Produce an object suitable for an ASN1OutputStream.
* <pre>
* Attribute ::= SEQUENCE {
* attrType OBJECT IDENTIFIER,
* attrValues SET OF AttributeValue
* }
* </pre>
*/
public DERObject toASN1Object() {
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(attrType);
v.add(attrValues);
return new DERSequence(v);
}
Aggregations