Example usage for org.bouncycastle.asn1 DERSequence toASN1Object

List of usage examples for org.bouncycastle.asn1 DERSequence toASN1Object

Introduction

In this page you can find the example usage for org.bouncycastle.asn1 DERSequence toASN1Object.

Prototype

public ASN1Primitive toASN1Object() 

Source Link

Usage

From source file:org.italiangrid.voms.asn1.VOMSACGenerator.java

License:Apache License

public CertificateExtension generateVOMSExtension(List<X509AttributeCertificateHolder> acs) {

    ASN1EncodableVector vomsACs = new ASN1EncodableVector();

    for (X509AttributeCertificateHolder ac : acs)
        vomsACs.add(ac.toASN1Structure());

    DERSequence acSeq = new DERSequence(vomsACs);

    CertificateExtension ext = new CertificateExtension(VOMS_EXTENSION_OID.getId(), acSeq.toASN1Object(),
            false);// ww  w. ja v  a  2 s.  c o m

    return ext;
}