Examples of addCertificatesAndCRLs()


Examples of org.bouncycastle.cms.CMSSignedDataGenerator.addCertificatesAndCRLs()

        CMSSignedDataGenerator gen = new CMSSignedDataGenerator();

        gen.addSigner(_origKP.getPrivate(), _origCert, CMSSignedDataGenerator.DIGEST_SHA1);

        gen.addCertificatesAndCRLs(certs);

        CMSSignedData s = gen.generate(null, false, "BC");

        ByteArrayInputStream bIn = new ByteArrayInputStream(s.getEncoded());
        ASN1InputStream      aIn = new ASN1InputStream(bIn);
View Full Code Here

Examples of org.bouncycastle.cms.CMSSignedDataGenerator.addCertificatesAndCRLs()

        CMSSignedDataGenerator gen = new CMSSignedDataGenerator();

        gen.addSigner(_origKP.getPrivate(), _origCert, CMSSignedDataGenerator.DIGEST_SHA1);

        gen.addCertificatesAndCRLs(certs);

        X509AttributeCertificate attrCert = CMSTestUtil.getAttributeCertificate();

        X509Store store = X509Store.getInstance("AttributeCertificate/Collection",
                                    new X509CollectionStoreParameters(Collections.singleton(attrCert)), "BC");
View Full Code Here

Examples of org.bouncycastle.cms.CMSSignedDataStreamGenerator.addCertificatesAndCRLs()

        {
            CMSSignedDataStreamGenerator gen = new CMSSignedDataStreamGenerator();
           
            for (Iterator it = _certStores.iterator(); it.hasNext();)
            {
                gen.addCertificatesAndCRLs((CertStore)it.next());
            }

            for (Iterator it = _attributeCerts.iterator(); it.hasNext();)
            {
                gen.addAttributeCertificates((X509Store)it.next());
View Full Code Here

Examples of org.bouncycastle.cms.CMSSignedDataStreamGenerator.addCertificatesAndCRLs()

        CMSSignedDataStreamGenerator gen = new CMSSignedDataStreamGenerator();

        gen.addSigner(keyPair.getPrivate(), keyCert, CMSSignedDataStreamGenerator.DIGEST_SHA1, "SunRsaSign");

        gen.addCertificatesAndCRLs(certsAndCrls);

        OutputStream sigOut = gen.open(bOut);

        sigOut.write(TEST_MESSAGE.getBytes());
View Full Code Here

Examples of org.bouncycastle.cms.CMSSignedDataStreamGenerator.addCertificatesAndCRLs()

   
        CMSSignedDataStreamGenerator gen = new CMSSignedDataStreamGenerator();
   
        gen.addSigner(_origKP.getPrivate(), _origCert, CMSSignedDataStreamGenerator.DIGEST_SHA1, "BC");
   
        gen.addCertificatesAndCRLs(certsAndCrls);
   
        OutputStream sigOut = gen.open(bOut);
   
        sigOut.write(TEST_MESSAGE.getBytes());
       
View Full Code Here

Examples of org.bouncycastle.cms.CMSSignedDataStreamGenerator.addCertificatesAndCRLs()

        //
        gen = new CMSSignedDataStreamGenerator();
   
        gen.addSigners(sp.getSignerInfos());
       
        gen.addCertificatesAndCRLs(sp.getCertificatesAndCRLs("Collection", "BC"));
       
        bOut.reset();
       
        sigOut = gen.open(bOut, true);
   
View Full Code Here

Examples of org.bouncycastle.mail.smime.SMIMESignedGenerator.addCertificatesAndCRLs()

        // add a signer to the generator - this specifies we are using SHA1
        // the encryption algorithm used is taken from the key
        generator.addSigner(this.privateKey, this.certificate, SMIMESignedGenerator.DIGEST_SHA1);
       
        // add our pool of certs and cerls (if any) to go with the signature
        generator.addCertificatesAndCRLs(this.certStore);
       
        return generator;
       
    }
   
View Full Code Here

Examples of org.bouncycastle.mail.smime.SMIMESignedGenerator.addCertificatesAndCRLs()

        // add a signer to the generator - this specifies we are using SHA1
        // the encryption algorithm used is taken from the key
        generator.addSigner(this.privateKey, this.certificate, SMIMESignedGenerator.DIGEST_SHA1);
       
        // add our pool of certs and cerls (if any) to go with the signature
        generator.addCertificatesAndCRLs(this.certStore);
       
        return generator;
       
    }
   
View Full Code Here

Examples of org.bouncycastle.mail.smime.SMIMESignedGenerator.addCertificatesAndCRLs()

        // add a signer to the generator - this specifies we are using SHA1
        // the encryption algorithm used is taken from the key
        generator.addSigner(this.privateKey, this.certificate, SMIMESignedGenerator.DIGEST_SHA1);
       
        // add our pool of certs and cerls (if any) to go with the signature
        generator.addCertificatesAndCRLs(this.certStore);
       
        return generator;
       
    }
   
View Full Code Here

Examples of org.bouncycastle.mail.smime.SMIMESignedGenerator.addCertificatesAndCRLs()

        // add a signer to the generator - this specifies we are using SHA1
        // the encryption algorithm used is taken from the key
        generator.addSigner(this.privateKey, this.certificate, SMIMESignedGenerator.DIGEST_SHA1);
       
        // add our pool of certs and cerls (if any) to go with the signature
        generator.addCertificatesAndCRLs(this.certStore);
       
        return generator;
       
    }
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.