Class OciConfigResourcePrincipal

  • All Implemented Interfaces:
    OciConfigProvider

    @Deprecated(since="2.5.0",
                forRemoval=true)
    public class OciConfigResourcePrincipal
    extends Object
    implements OciConfigProvider
    Deprecated, for removal: This API element is subject to removal in a future version.
    OCI SDK instead
    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 Detail

      • OciConfigResourcePrincipal

        public OciConfigResourcePrincipal()
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • create

        public static OciConfigResourcePrincipal create()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Create a new instance from environment.
        Returns:
        new config provider
      • signatureData

        public OciSignatureData signatureData()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: OciConfigProvider
        Get the current signature data.
        Specified by:
        signatureData in interface OciConfigProvider
        Returns:
        current signature data
      • region

        public String region()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: OciConfigProvider
        Current OCI region.
        Specified by:
        region in interface OciConfigProvider
        Returns:
        OCI region, such as eu-frankfurt-1
      • tenancyOcid

        public String tenancyOcid()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: OciConfigProvider
        OCID of the tenancy.
        Specified by:
        tenancyOcid in interface OciConfigProvider
        Returns:
        tenancy OCID
      • refresh

        public Single<OciSignatureData> refresh()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: OciConfigProvider
        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.
        Specified by:
        refresh in interface OciConfigProvider
        Returns:
        future with signature data, if no refresh was done, the instance will be the same as when OciConfigProvider.signatureData() was called.