use of com.android.org.bouncycastle.asn1.DERSequence in project XobotOS by xamarin.
the class EncryptionScheme method getDERObject.
public DERObject getDERObject() {
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(getObjectId());
v.add(getParameters());
return new DERSequence(v);
}
use of com.android.org.bouncycastle.asn1.DERSequence in project XobotOS by xamarin.
the class IssuerAndSerialNumber method toASN1Object.
public DERObject toASN1Object() {
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(name);
v.add(certSerialNumber);
return new DERSequence(v);
}
use of com.android.org.bouncycastle.asn1.DERSequence in project XobotOS by xamarin.
the class AttributeCertificate method toASN1Object.
/**
* Produce an object suitable for an ASN1OutputStream.
* <pre>
* AttributeCertificate ::= SEQUENCE {
* acinfo AttributeCertificateInfo,
* signatureAlgorithm AlgorithmIdentifier,
* signatureValue BIT STRING
* }
* </pre>
*/
public DERObject toASN1Object() {
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(acinfo);
v.add(signatureAlgorithm);
v.add(signatureValue);
return new DERSequence(v);
}
use of com.android.org.bouncycastle.asn1.DERSequence in project XobotOS by xamarin.
the class AttributeCertificateInfo method toASN1Object.
/**
* Produce an object suitable for an ASN1OutputStream.
* <pre>
* AttributeCertificateInfo ::= SEQUENCE {
* version AttCertVersion -- version is v2,
* holder Holder,
* issuer AttCertIssuer,
* signature AlgorithmIdentifier,
* serialNumber CertificateSerialNumber,
* attrCertValidityPeriod AttCertValidityPeriod,
* attributes SEQUENCE OF Attribute,
* issuerUniqueID UniqueIdentifier OPTIONAL,
* extensions Extensions OPTIONAL
* }
*
* AttCertVersion ::= INTEGER { v2(1) }
* </pre>
*/
public DERObject toASN1Object() {
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(version);
v.add(holder);
v.add(issuer);
v.add(signature);
v.add(serialNumber);
v.add(attrCertValidityPeriod);
v.add(attributes);
if (issuerUniqueID != null) {
v.add(issuerUniqueID);
}
if (extensions != null) {
v.add(extensions);
}
return new DERSequence(v);
}
use of com.android.org.bouncycastle.asn1.DERSequence in project XobotOS by xamarin.
the class DSAParameter method toASN1Object.
public DERObject toASN1Object() {
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(p);
v.add(q);
v.add(g);
return new DERSequence(v);
}
Aggregations