Interface OciAuthenticationMethod


@Contract public interface OciAuthenticationMethod
An OCI Authentication Details Provider service contract.

This service is implemented by:

  • Config based method
  • Config file based method
  • Resource principal method
  • Instance principal method
The first one that provides an instance will be used as the value. To customize, create your own service with a default or higher weight.
  • Method Summary

    Modifier and Type
    Method
    Description
    The OCI authentication method name, can be used to explicitly select a method using configuration.
    Optional<com.oracle.bmc.auth.BasicAuthenticationDetailsProvider>
    Provide an instance of the BasicAuthenticationDetailsProvider to be used by other services.
  • Method Details

    • method

      String method()
      The OCI authentication method name, can be used to explicitly select a method using configuration.
      Returns:
      OCI authentication method name
    • provider

      Optional<com.oracle.bmc.auth.BasicAuthenticationDetailsProvider> provider()
      Provide an instance of the BasicAuthenticationDetailsProvider to be used by other services.
      Returns:
      authentication details provider, or empty if nothing can be provided