Class InstancePrincipalConfiguration

java.lang.Object
io.micronaut.oraclecloud.core.InstancePrincipalConfiguration
All Implemented Interfaces:
io.micronaut.core.util.Toggleable

@ConfigurationProperties("oci.config.instance-principal") @Requires(property="oci.config.instance-principal.enabled", value="true") public class InstancePrincipalConfiguration extends Object implements io.micronaut.core.util.Toggleable
Allows configuration of the InstancePrincipalsAuthenticationDetailsProvider.
Since:
1.0.0
Author:
graemerocher, toddsharp
  • Field Details

  • Constructor Details

    • InstancePrincipalConfiguration

      public InstancePrincipalConfiguration()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
    • setEnabled

      public void setEnabled(boolean enabled)
      Parameters:
      enabled - Sets whether to enable instance principal authentication
    • getMetadataBaseUrl

      public String getMetadataBaseUrl()
      Get custom metadata base url.
      Returns:
      metadata base url
    • setMetadataBaseUrl

      public void setMetadataBaseUrl(String metadataBaseUrl)
      Sets custom metadata base url.
      Parameters:
      metadataBaseUrl - custom metadata url
    • getBuilder

      public com.oracle.bmc.auth.InstancePrincipalsAuthenticationDetailsProvider.InstancePrincipalsAuthenticationDetailsProviderBuilder getBuilder()
      Returns:
      The builder