Package dev.dsf.bpe.v2.service
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 Summary
Modifier and TypeMethodDescriptionEvery call to this method creates a newSSLContext
object.Every call to this method creates a newKeyStore
object.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 activeEndpoint
resource 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 newSSLContext
object.- Returns:
- new
SSLContext
configured withcreateDefaultTrustStore()
-
createDefaultTrustStore
KeyStore createDefaultTrustStore()Every call to this method creates a newKeyStore
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
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 activeEndpoint
resource 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:
-