Class AuthenticationInterceptor

  • All Implemented Interfaces:
    okhttp3.Interceptor

    public class AuthenticationInterceptor
    extends Object
    implements okhttp3.Interceptor
    A request interceptor that injects the API Key Header into requests, and signs messages, whenever required.
    • Constructor Detail

      • AuthenticationInterceptor

        public AuthenticationInterceptor​(String apiKey,
                                         String secret,
                                         Long recvWindow)
    • Method Detail

      • intercept

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

        public int hashCode()
        Overrides:
        hashCode in class Object