Package io.micronaut.oraclecloud.core
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.oracle.bmc.auth.InstancePrincipalsAuthenticationDetailsProvider.InstancePrincipalsAuthenticationDetailsProviderBuilder
Get custom metadata base url.boolean
void
setEnabled
(boolean enabled) void
setMetadataBaseUrl
(String metadataBaseUrl) Sets custom metadata base url.
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
InstancePrincipalConfiguration
public InstancePrincipalConfiguration()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) - Parameters:
enabled
- Sets whether to enable instance principal authentication
-
getMetadataBaseUrl
Get custom metadata base url.- Returns:
- metadata base url
-
setMetadataBaseUrl
Sets custom metadata base url.- Parameters:
metadataBaseUrl
- custom metadata url
-
getBuilder
public com.oracle.bmc.auth.InstancePrincipalsAuthenticationDetailsProvider.InstancePrincipalsAuthenticationDetailsProviderBuilder getBuilder()- Returns:
- The builder
-