Class AuthenticationInterceptor

java.lang.Object
xyz.felh.okx.v5.interceptor.AuthenticationInterceptor
All Implemented Interfaces:
okhttp3.Interceptor

public class AuthenticationInterceptor extends Object implements okhttp3.Interceptor
OkHttp Interceptor that adds an authorization header
  • Constructor Details

    • AuthenticationInterceptor

      public AuthenticationInterceptor(String apiKey, String secretKey, String passphrase)
    • AuthenticationInterceptor

      public AuthenticationInterceptor(String apiKey, String secretKey, String passphrase, boolean simulated)
  • Method Details

    • intercept

      @NotNull public okhttp3.Response intercept(@NotNull okhttp3.Interceptor.Chain chain) throws IOException
      Specified by:
      intercept in interface okhttp3.Interceptor
      Throws:
      IOException