All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bouncycastle.cert.crmf.CertificateReqMessagesBuilder Maven / Gradle / Ivy

Go to download

The Bouncy Castle Java APIs for CMS, PKCS, EAC, TSP, CMP, CRMF, OCSP, and certificate generation. This jar contains APIs for JDK 1.5 to JDK 1.8. The APIs can be used in conjunction with a JCE/JCA provider such as the one provided with the Bouncy Castle Cryptography APIs.

There is a newer version: 1.79
Show newest version
package org.bouncycastle.cert.crmf;

import java.util.ArrayList;
import java.util.List;

import org.bouncycastle.asn1.crmf.CertReqMessages;
import org.bouncycastle.asn1.crmf.CertReqMsg;

public class CertificateReqMessagesBuilder
{
    List requests = new ArrayList();

    public CertificateReqMessagesBuilder()
    {

    }

    public void addRequest(CertificateRequestMessage request)
    {
        requests.add(request.toASN1Structure());
    }

    public CertificateReqMessages build()
    {

        CertificateReqMessages certificateReqMessages = new CertificateReqMessages(new CertReqMessages((CertReqMsg[])requests.toArray(new CertReqMsg[0])));

        requests.clear();

        return certificateReqMessages;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy