use of org.openecard.bouncycastle.asn1.DERSequence in project XobotOS by xamarin.
the class PolicyInformation method toASN1Object.
/*
* PolicyInformation ::= SEQUENCE {
* policyIdentifier CertPolicyId,
* policyQualifiers SEQUENCE SIZE (1..MAX) OF
* PolicyQualifierInfo OPTIONAL }
*/
public DERObject toASN1Object() {
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(policyIdentifier);
if (policyQualifiers != null) {
v.add(policyQualifiers);
}
return new DERSequence(v);
}
use of org.openecard.bouncycastle.asn1.DERSequence in project XobotOS by xamarin.
the class RSAPublicKeyStructure method toASN1Object.
/**
* This outputs the key in PKCS1v2 format.
* <pre>
* RSAPublicKey ::= SEQUENCE {
* modulus INTEGER, -- n
* publicExponent INTEGER, -- e
* }
* </pre>
* <p>
*/
public DERObject toASN1Object() {
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(new DERInteger(getModulus()));
v.add(new DERInteger(getPublicExponent()));
return new DERSequence(v);
}
use of org.openecard.bouncycastle.asn1.DERSequence 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.DERSequence 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.DERSequence 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);
}
Aggregations