Class OciConfigInstancePrincipal
java.lang.Object
io.helidon.integrations.oci.connect.OciConfigInstancePrincipal
- All Implemented Interfaces:
OciConfigProvider
OCI connectivity configuration based on instance principal.
This is used when running within OCI VMs.
Configuration: OCI Instance Security
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Fluent API builder to create customized instances.static OciConfigInstancePrincipalcreate()Create a new instance from environment.refresh()Refresh may be used for providers that can be reloaded.region()Current OCI region.Get the current signature data.OCID of the tenancy.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.integrations.oci.connect.OciConfigProvider
domain
-
Method Details
-
builder
Fluent API builder to create customized instances.- Returns:
- a new builder
-
create
Create a new instance from environment.- Returns:
- a new instance
-
signatureData
Description copied from interface:OciConfigProviderGet the current signature data.- Specified by:
signatureDatain interfaceOciConfigProvider- Returns:
- current signature data
-
region
Description copied from interface:OciConfigProviderCurrent OCI region.- Specified by:
regionin interfaceOciConfigProvider- Returns:
- OCI region, such as
eu-frankfurt-1
-
tenancyOcid
Description copied from interface:OciConfigProviderOCID of the tenancy.- Specified by:
tenancyOcidin interfaceOciConfigProvider- Returns:
- tenancy OCID
-
refresh
Description copied from interface:OciConfigProviderRefresh may be used for providers that can be reloaded. The method is called when an invocation fails (for the first time) with a 401 exception.- Specified by:
refreshin interfaceOciConfigProvider- Returns:
- future with signature data, if no refresh was done, the instance will be the same as when
OciConfigProvider.signatureData()was called.
-