java.lang.Object
io.helidon.integrations.oci.connect.OciConfigProfile
All Implemented Interfaces:
OciConfigProvider

public class OciConfigProfile extends Object implements OciConfigProvider
OCI configuration required to connect to a service over REST API.
  • Method Details

    • create

      public static OciConfigProfile create()
      Create configuration from the default location ~/.oci/config and default profile DEFAULT.
      Returns:
      a new configuration loaded from default location
    • builder

      public static OciConfigProfile.Builder builder()
      A new fluent API builder to configure a new profile config.
      Returns:
      a new builder
    • create

      public static OciConfigProfile create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - configuration
      Returns:
      a new profile configuration
    • signatureData

      public OciSignatureData signatureData()
      Description copied from interface: OciConfigProvider
      Get the current signature data.
      Specified by:
      signatureData in interface OciConfigProvider
      Returns:
      current signature data
    • userOcid

      public String userOcid()
      OCID of the user. Uses key user in OCI config file and in config.
      Returns:
      user OCID
    • tenancyOcid

      public String tenancyOcid()
      OCID of the tenancy. Uses key tenancy in OCI config file and in config.
      Specified by:
      tenancyOcid in interface OciConfigProvider
      Returns:
      tenancy OCID
    • keyFingerprint

      public String keyFingerprint()
      Fingerprint of the key. Uses key fingerprint in OCI config file and in config.
      Returns:
      key fingerprint
    • region

      public String region()
      Region to use when connecting to OCI. This is used to resolve the host to connect to. Uses key region in OCI config file and in config.
      Specified by:
      region in interface OciConfigProvider
      Returns:
      OCI region, such as eu-frankfurt-1
    • privateKey

      public String privateKey()
      Private key (PEM encoded) used to sign requests. Uses key-file in OCI config to locate the PEM file, uses key-pem in config.
      Returns:
      private key to use for signing requests
    • property

      public Optional<String> property(String key)
      A property defined either in OCI config file or in config.
      Parameters:
      key - name of the property
      Returns:
      value if present in configuration
    • fullConfig

      public Map<String,String> fullConfig()
      Full map of configuration properties either from OCI config file or from config.
      Returns:
      map of key/value pairs