Class TestTrustStore

java.lang.Object
org.junit.rules.ExternalResource
org.elasticsearch.test.TestTrustStore
All Implemented Interfaces:
org.junit.rules.TestRule

public class TestTrustStore extends org.junit.rules.ExternalResource
JUnit rule that builds a trust store at runtime from a PEM certificate stream. In FIPS mode the store type is BCFKS; otherwise JKS. See #111532 for broader trust store infrastructure improvements.
  • Constructor Details

  • Method Details

    • getTrustStorePath

      public Path getTrustStorePath()
    • getTrustStoreType

      public String getTrustStoreType()
    • before

      protected void before()
      Overrides:
      before in class org.junit.rules.ExternalResource
    • after

      protected void after()
      Overrides:
      after in class org.junit.rules.ExternalResource