org.bouncycastle.cert.crmf.CertificateReqMessagesBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of polaris-all Show documentation
Show all versions of polaris-all Show documentation
All in one project for polaris-java
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
{
private final 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