Class JcaCertStoreBuilder


  • public class JcaCertStoreBuilder
    extends java.lang.Object
    Builder to create a CertStore from certificate and CRL stores.
    • Constructor Detail

      • JcaCertStoreBuilder

        public JcaCertStoreBuilder()
    • Method Detail

      • addCertificates

        public JcaCertStoreBuilder addCertificates​(org.bouncycastle.util.Store certStore)
        Add a store full of X509CertificateHolder objects.
        Parameters:
        certStore - a store of X509CertificateHolder objects.
      • addCRLs

        public JcaCertStoreBuilder addCRLs​(org.bouncycastle.util.Store crlStore)
        Add a store full of X509CRLHolder objects.
        Parameters:
        crlStore - a store of X509CRLHolder objects.
      • setType

        public JcaCertStoreBuilder setType​(java.lang.String type)
        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

        public java.security.cert.CertStore build()
                                           throws java.security.GeneralSecurityException
        Build the CertStore from the current inputs.
        Returns:
        a CertStore.
        Throws:
        java.security.GeneralSecurityException