Package com.bybit.api.client.security
Class AuthenticationInterceptor
- java.lang.Object
-
- com.bybit.api.client.security.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 Summary
Constructors Constructor Description AuthenticationInterceptor(String apiKey, String secret, Long recvWindow)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()okhttp3.Responseintercept(okhttp3.Interceptor.Chain chain)
-
-
-
Method Detail
-
intercept
@NotNull public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException- Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-
-