Class OciConfigResourcePrincipal
java.lang.Object
io.helidon.integrations.oci.connect.OciConfigResourcePrincipal
- All Implemented Interfaces:
OciConfigProvider
OCI connectivity configuration based on resource principal.
This is used when running within functions.
TODO THIS CLASS IS NOT YET IMPLEMENTED AND WILL THROW AN EXCEPTION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OciConfigResourcePrincipalcreate()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
-
Constructor Details
-
OciConfigResourcePrincipal
public OciConfigResourcePrincipal()
-
-
Method Details
-
create
Create a new instance from environment.- Returns:
- new config provider
-
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.
-