Example usage for org.bouncycastle.cert.jcajce JcaCRLStore JcaCRLStore

List of usage examples for org.bouncycastle.cert.jcajce JcaCRLStore JcaCRLStore

Introduction

In this page you can find the example usage for org.bouncycastle.cert.jcajce JcaCRLStore JcaCRLStore.

Prototype

public JcaCRLStore(Collection collection) throws CRLException 

Source Link

Document

Basic constructor.

Usage

From source file:net.ripe.rpki.commons.provisioning.cms.ProvisioningCmsObjectBuilder.java

License:BSD License

private void addCertificateAndCrl(CMSSignedDataGenerator generator)
        throws CertificateEncodingException, CMSException, CRLException {
    List<X509Extension> certificates = new ArrayList<X509Extension>();
    certificates.add(cmsCertificate);// w  w w  .j  a  v a2  s . co  m

    generator.addCertificates(new JcaCertStore(certificates));
    generator.addCRLs(new JcaCRLStore(Collections.singleton(crl)));
}

From source file:org.jscep.server.ScepServlet.java

License:Open Source License

private CMSSignedData getMessageData(final X509CRL crl)
        throws IOException, CMSException, GeneralSecurityException {
    CMSSignedDataGenerator generator = new CMSSignedDataGenerator();
    JcaCRLStore store;/*from  w w w .  j a va 2s . com*/
    if (crl == null) {
        store = new JcaCRLStore(Collections.emptyList());
    } else {
        store = new JcaCRLStore(Collections.singleton(crl));
    }
    generator.addCRLs(store);
    return generator.generate(new CMSAbsentContent());
}

From source file:org.wso2.carbon.identity.certificateauthority.endpoint.scep.ScepEndpoint.java

License:Open Source License

private CMSSignedData getMessageData(X509CRL crl) throws CRLException, CMSException {
    CMSSignedDataGenerator generator = new CMSSignedDataGenerator();
    JcaCRLStore store;//from   w w  w .j av  a  2  s .c  o  m
    if (crl == null) {
        store = new JcaCRLStore(Collections.emptyList());
    } else {
        store = new JcaCRLStore(Collections.singleton(crl));
    }
    generator.addCertificates(store);
    return generator.generate(new CMSAbsentContent());
}