List of usage examples for org.bouncycastle.asn1 DERSequence toASN1Object
public ASN1Primitive toASN1Object()
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; }