Interface SysProvider<T>

Type Parameters:
T - type of API supported
All Known Implementing Classes:
HcpSysProvider

public interface SysProvider<T>
Java Service Loader service to add support for sys APIs.
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    createSys(Config config, RestApi restAccess)
    Deprecated, for removal: This API element is subject to removal in a future version.
    default T
    createSys(Config config, RestApi restAccess)
    Create a new instance of Sys.
    Supported API by this provider.
  • Method Details

    • supportedApi

      SysApi<T> supportedApi()
      Supported API by this provider.
      Returns:
      sys API supported
    • createSys

      @Deprecated(since="4.4.0", forRemoval=true) default T createSys(Config config, RestApi restAccess)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a new instance of Sys.
      Parameters:
      config - vault configuration
      restAccess - access to REST endpoints
      Returns:
      an API to access sys functions
    • createSys

      default T createSys(Config config, RestApi restAccess)
      Create a new instance of Sys.

      API Note: the default method implementation is provided for backward compatibility and will be removed in the next major version

      Parameters:
      config - vault configuration
      restAccess - access to REST endpoints
      Returns:
      an API to access sys functions
      Since:
      4.4.0