Class OciConfigProfile
java.lang.Object
io.helidon.integrations.oci.connect.OciConfigProfile
- All Implemented Interfaces:
OciConfigProvider
OCI configuration required to connect to a service over REST API.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic OciConfigProfile.Builderbuilder()A new fluent API builder to configure a new profile config.static OciConfigProfilecreate()Create configuration from the default location~/.oci/configand default profileDEFAULT.static OciConfigProfileCreate a new instance from configuration.Full map of configuration properties either from OCI config file or from config.Fingerprint of the key.Private key (PEM encoded) used to sign requests.A property defined either in OCI config file or in config.region()Region to use when connecting to OCI.Get the current signature data.OCID of the tenancy.userOcid()OCID of the user.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, refresh
-
Method Details
-
create
Create configuration from the default location~/.oci/configand default profileDEFAULT.- Returns:
- a new configuration loaded from default location
-
builder
A new fluent API builder to configure a new profile config.- Returns:
- a new builder
-
create
Create a new instance from configuration.- Parameters:
config- configuration- Returns:
- a new profile configuration
-
signatureData
Description copied from interface:OciConfigProviderGet the current signature data.- Specified by:
signatureDatain interfaceOciConfigProvider- Returns:
- current signature data
-
userOcid
OCID of the user. Uses keyuserin OCI config file and in config.- Returns:
- user OCID
-
tenancyOcid
OCID of the tenancy. Uses keytenancyin OCI config file and in config.- Specified by:
tenancyOcidin interfaceOciConfigProvider- Returns:
- tenancy OCID
-
keyFingerprint
Fingerprint of the key. Uses keyfingerprintin OCI config file and in config.- Returns:
- key fingerprint
-
region
Region to use when connecting to OCI. This is used to resolve the host to connect to. Uses keyregionin OCI config file and in config.- Specified by:
regionin interfaceOciConfigProvider- Returns:
- OCI region, such as
eu-frankfurt-1
-
privateKey
Private key (PEM encoded) used to sign requests. Useskey-filein OCI config to locate the PEM file, useskey-pemin config.- Returns:
- private key to use for signing requests
-
property
A property defined either in OCI config file or in config.- Parameters:
key- name of the property- Returns:
- value if present in configuration
-
fullConfig
Full map of configuration properties either from OCI config file or from config.- Returns:
- map of key/value pairs
-