Class OciExtension
java.lang.Object
io.helidon.integrations.oci.sdk.runtime.OciExtension
This class enables configuration access for integration to the Oracle Cloud Infrastructure Java SDK. It is intended for
non-Helidon MP, non-CDI usage scenarios. For usages that involve
Helidon MP and CDI please refer to
io.helidon.integrations.oci.sdk.cdi.OciExtension instead. This
integration will follow the same terminology and usage pattern as specified
for Helidon MP integration.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThe supplier for the raw config-backed by the OCI config source(s).static voidconfigSupplier(Supplier<Config> configSupplier) Establishes the supplier for the raw config-backed by the OCI config source(s).static Class<? extends com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider>configuredAuthenticationDetailsProvider(boolean verifyIsAvailable) The configured authentication provider strategy type name.static voidfallbackConfigSupplier(Supplier<Config> configSupplier) Establishes the fallback config supplier used only when theDEFAULT_OCI_GLOBAL_CONFIG_FILEis not physically present, and there has been no config supplier explicitly established viaconfigSupplier(Supplier).static Supplier<? extends com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider>The supplier for the globally configured OCI authentication provider.static OciConfigReturns the globalOciConfigbean that is currently defined in the bootstrap environment.
-
Method Details
-
configuredAuthenticationDetailsProvider
public static Class<? extends com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider> configuredAuthenticationDetailsProvider(boolean verifyIsAvailable) The configured authentication provider strategy type name. Note, however, that the authentication strategy returned may not necessarily be available. The configured authentication provider merely returns what is configured via "auth-strategy" and/or "auth-strategies". In order to additionally check if the provider is available, theverifyIsAvailableargument should betrue.- Parameters:
verifyIsAvailable- flag to indicate whether the provider should be checked for availability- Returns:
- the configured authentication type name
-
ociConfig
Returns the globalOciConfigbean that is currently defined in the bootstrap environment.The implementation will first look for an
oci.yamlfile, and if found will use that file to establish the global oci-specific bootstrapConfigSource.The final fallback mechanism will use an
autoauthentication strategy - seeOciConfigBlueprintfor details.- Returns:
- the bootstrap oci config bean
- See Also:
-
OciConfigBlueprintociConfigSupplier
-
ociAuthenticationProvider
public static Supplier<? extends com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider> ociAuthenticationProvider()The supplier for the globally configured OCI authentication provider.- Returns:
- the supplier for the globally configured authentication provider
- See Also:
-
configSupplier
The supplier for the raw config-backed by the OCI config source(s).- Returns:
- the supplier for the raw config-backed by the OCI config source(s)
- See Also:
-
configSupplier
Establishes the supplier for the raw config-backed by the OCI config source(s). Setting this will override the usage of theDEFAULT_OCI_GLOBAL_CONFIG_FILEas the backing configuration file.- Parameters:
configSupplier- the config supplier- See Also:
-
fallbackConfigSupplier
Establishes the fallback config supplier used only when theDEFAULT_OCI_GLOBAL_CONFIG_FILEis not physically present, and there has been no config supplier explicitly established viaconfigSupplier(Supplier).This method is typically used when running in CDI in order to allow for the fallback of using microprofile configuration.
- Parameters:
configSupplier- the fallback config supplier- See Also:
-