Class VerifiedCertPathBuilder


  • @SnowflakeJdbcInternalApi
    public class VerifiedCertPathBuilder
    extends Object
    Builds and verifies certificate paths using a truststore and CertPathBuilder. This class takes a certificate chain presented by a server and returns verified paths that include trust anchors for CRL validation support.
    • Method Detail

      • buildAllVerifiedPaths

        public List<X509Certificate[]> buildAllVerifiedPaths​(X509Certificate[] certificateChain,
                                                             String authType)
                                                      throws CertificateException,
                                                             CertPathBuilderException
        Builds and verifies all possible certificate paths from leaf certificates to trust anchors. Unlike standard PKIX path building, this method includes trust anchor certificates at the end of each path for CRL validation support.
        Parameters:
        certificateChain - the certificate chain presented by the server
        authType - the authentication type used for the connection
        Returns:
        a list of all verified certificate paths with trust anchors included
        Throws:
        CertificateException - if certificate validation fails
        CertPathBuilderException - if no valid certificate paths could be built