Package org.candlepin.pki

Examples of org.candlepin.pki.X509CRLEntryWrapper


        X509CRL x509crl = g.generate(kp.getPrivate());

        List<CertificateSerial> serials = getStubCSList();
        List<X509CRLEntryWrapper> entries = Util.newList();
        for (CertificateSerial serial : serials) {
            entries.add(new X509CRLEntryWrapper(serial.getSerial(),
                new Date()));
            serial.setCollected(true);
        }

        x509crl = pkiUtility.createX509CRL(entries, BigInteger.TEN);
View Full Code Here


    protected List<X509CRLEntryWrapper> getNewSerialsToAppendAndSetThemConsumed() {
        List<X509CRLEntryWrapper> entries = Util.newList();
        List<CertificateSerial> serials =
            this.certificateSerialCurator.retrieveTobeCollectedSerials();
        for (CertificateSerial cs : serials) {
            entries.add(new X509CRLEntryWrapper(cs.getSerial(),
                   new Date()));
            cs.setCollected(true);
        }
        if (log.isTraceEnabled()) {
            log.trace("Added #" + serials.size() + " new entries to the CRL");
View Full Code Here

     */
    private List<X509CRLEntryWrapper> toSimpleCRLEntries(
        Set<? extends X509CRLEntry> entries) {
        List<X509CRLEntryWrapper> crlEntries = newList();
        for (X509CRLEntry entry : entries) {
            crlEntries.add(new X509CRLEntryWrapper(entry.getSerialNumber(),
                entry.getRevocationDate()));
        }
        return crlEntries;
    }
View Full Code Here

TOP

Related Classes of org.candlepin.pki.X509CRLEntryWrapper

Copyright © 2018 www.massapicom. 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.