Class TruststoreBuilder

java.lang.Object
org.keycloak.truststore.TruststoreBuilder

public class TruststoreBuilder extends Object
Builds a system-wide truststore from the given config options.
  • Field Details

  • Constructor Details

    • TruststoreBuilder

      public TruststoreBuilder()
  • Method Details

    • setSystemTruststore

      public static void setSystemTruststore(String[] truststores, boolean trustStoreIncludeDefault, String dataDir)
    • includeKubernetesTrustStorePaths

      public static void includeKubernetesTrustStorePaths(List<String> trustStores)
      Include the Kubernetes and/or OpenShift service CA truststore paths if enabled and the files exist. Uses the default well-known Kubernetes service account paths.
      Parameters:
      trustStores - the existing truststore paths
    • includeKubernetesTrustStorePaths

      public static void includeKubernetesTrustStorePaths(List<String> trustStores, String kubernetesCaPath, String serviceCaPath)
      Include the Kubernetes and/or OpenShift service CA truststore paths if enabled and the files exist.
      Parameters:
      trustStores - the existing truststore paths
      kubernetesCaPath - path to the Kubernetes service account CA certificate
      serviceCaPath - path to the OpenShift service CA certificate