java.lang.Object
io.helidon.integrations.oci.sdk.runtime.OciExtension

public final class OciExtension extends Object
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 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, the verifyIsAvailable argument should be true.
      Parameters:
      verifyIsAvailable - flag to indicate whether the provider should be checked for availability
      Returns:
      the configured authentication type name
    • ociConfig

      public static OciConfig ociConfig()
      Returns the global OciConfig bean that is currently defined in the bootstrap environment.

      The implementation will first look for an oci.yaml file, and if found will use that file to establish the global oci-specific bootstrap ConfigSource.

      The final fallback mechanism will use an auto authentication strategy - see OciConfigBlueprint for details.

      Returns:
      the bootstrap oci config bean
      See Also:
      • OciConfigBlueprint
      • ociConfigSupplier
    • 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

      public static Supplier<Config> 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

      public static void configSupplier(Supplier<Config> configSupplier)
      Establishes the supplier for the raw config-backed by the OCI config source(s). Setting this will override the usage of the DEFAULT_OCI_GLOBAL_CONFIG_FILE as the backing configuration file.
      Parameters:
      configSupplier - the config supplier
      See Also:
    • fallbackConfigSupplier

      public static void fallbackConfigSupplier(Supplier<Config> configSupplier)
      Establishes the fallback config supplier used only when the DEFAULT_OCI_GLOBAL_CONFIG_FILE is not physically present, and there has been no config supplier explicitly established via configSupplier(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: