Interface OciConfigProvider

All Known Implementing Classes:
OciConfigInstancePrincipal, OciConfigProfile, OciConfigResourcePrincipal

public interface OciConfigProvider
Provider of data needed to connect to OCI, and to use its APIs.
  • Method Details

    • signatureData

      OciSignatureData signatureData()
      Get the current signature data.
      Returns:
      current signature data
    • region

      String region()
      Current OCI region.
      Returns:
      OCI region, such as eu-frankfurt-1
    • tenancyOcid

      String tenancyOcid()
      OCID of the tenancy.
      Returns:
      tenancy OCID
    • domain

      default Optional<String> domain()
      OCI domain to use. If not available REST API will use the default or configured domain to call REST services.
      Returns:
      current OCI domain if avialable
    • refresh

      default Single<OciSignatureData> refresh()
      Refresh 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.
      Returns:
      future with signature data, if no refresh was done, the instance will be the same as when signatureData() was called.