Interface FhirClientConfigProvider


public interface FhirClientConfigProvider
Provides connection configurations for YAML configured (non DSF) FHIR servers and DSF FHIR servers, as well as access to the default certificate trust store for FHIR connections configured via the DSF BPE property `dev.dsf.bpe.fhir.client.connections.config.default.trust.server.certificate.cas` as default for the YAML properties `trusted-root-certificates-file` and `oidc-auth.trusted-root-certificates-file`
  • Method Details

    • createDefaultSslContext

      SSLContext createDefaultSslContext()
      Every call to this method creates a new SSLContext object.
      Returns:
      new SSLContext configured with createDefaultTrustStore()
    • createDefaultTrustStore

      KeyStore createDefaultTrustStore()
      Every call to this method creates a new KeyStore object.
      Returns:
      copy of default certificate trust store configured via the DSF BPE config property `dev.dsf.bpe.fhir.client.connections.config.default.trust.server.certificate.cas`
    • getClientConfig

      Optional<ClientConfig> getClientConfig(String fhirServerId)
      FHIR client config for a FHIR server configured via YAML with the given fhirServerId.

      Use #local as the fhirServerId for a connection configuration to the local DSF FHIR server.
      Use #<value> as the fhirServerId for a connection configuration to a DSF FHIR server with an active Endpoint resource and the given fhirServerId as the "http://dsf.dev/sid/endpoint-identifier" value (ignoring the # character).
      Parameters:
      fhirServerId - may be null
      Returns:
      never null, Optional.empty() if no client is configured for the given fhirServerId
      See Also: