Interface ClientConfigProvider
public interface ClientConfigProvider
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 Summary
Modifier and TypeMethodDescriptionEvery call to this method creates a newSSLContextobject.Every call to this method creates a newKeyStoreobject.getClientConfig(String fhirServerId) FHIR client config for a FHIR server configured via YAML with the given fhirServerId.
Use#localas 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 activeEndpointresource and the given fhirServerId as the "http://dsf.dev/sid/endpoint-identifier" value (ignoring the # character).
-
Method Details
-
createDefaultSslContext
SSLContext createDefaultSslContext()Every call to this method creates a newSSLContextobject.- Returns:
- new
SSLContextconfigured withcreateDefaultTrustStore()
-
createDefaultTrustStore
-
getClientConfig
FHIR client config for a FHIR server configured via YAML with the given fhirServerId.
Use#localas 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 activeEndpointresource and the given fhirServerId as the "http://dsf.dev/sid/endpoint-identifier" value (ignoring the # character).- Parameters:
fhirServerId- may benull- Returns:
- never
null,Optional.empty()if no client is configured for the given fhirServerId - See Also:
-