Package org.bouncycastle.cert.jcajce
Class JcaCertStoreBuilder
java.lang.Object
org.bouncycastle.cert.jcajce.JcaCertStoreBuilder
Builder to create a CertStore from certificate and CRL stores.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd a single certificate.addCertificates
(org.bouncycastle.util.Store certStore) Add a store full of X509CertificateHolder objects.addCRL
(X509CRLHolder crl) Add a single CRL.addCRLs
(org.bouncycastle.util.Store crlStore) Add a store full of X509CRLHolder objects.build()
Build the CertStore from the current inputs.setProvider
(String providerName) setProvider
(Provider provider) Set the type of the CertStore generated.
-
Constructor Details
-
JcaCertStoreBuilder
public JcaCertStoreBuilder()
-
-
Method Details
-
addCertificates
Add a store full of X509CertificateHolder objects.- Parameters:
certStore
- a store of X509CertificateHolder objects.
-
addCertificate
Add a single certificate.- Parameters:
cert
- the X509 certificate holder containing the certificate.
-
addCRLs
Add a store full of X509CRLHolder objects.- Parameters:
crlStore
- a store of X509CRLHolder objects.
-
addCRL
Add a single CRL.- Parameters:
crl
- the X509 CRL holder containing the CRL.
-
setProvider
-
setProvider
-
setType
Set the type of the CertStore generated. By default it is "Collection".- Parameters:
type
- type of CertStore passed to CertStore.getInstance().- Returns:
- the current builder.
-
build
Build the CertStore from the current inputs.- Returns:
- a CertStore.
- Throws:
GeneralSecurityException
-