public class GateApiV4Auth extends Object implements Authentication, okhttp3.Interceptor
| Constructor and Description |
|---|
GateApiV4Auth(String apiKey,
String apiSecret) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyToParams(List<Pair> queryParams,
Map<String,String> headerParams,
Map<String,String> cookieParams)
Apply authentication settings to header and query params.
|
String |
getApiKey() |
okhttp3.Response |
intercept(okhttp3.Interceptor.Chain chain) |
void |
setApiKey(String apiKey) |
void |
setApiSecret(String apiSecret) |
void |
setKeyPair(String apiKey,
String apiSecret) |
public String getApiKey()
public void setApiKey(String apiKey)
public void setApiSecret(String apiSecret)
public void applyToParams(List<Pair> queryParams, Map<String,String> headerParams, Map<String,String> cookieParams)
AuthenticationapplyToParams in interface AuthenticationqueryParams - List of query parametersheaderParams - Map of header parameterscookieParams - Map of cookie parameterspublic okhttp3.Response intercept(okhttp3.Interceptor.Chain chain)
throws IOException
intercept in interface okhttp3.InterceptorIOExceptionCopyright © 2023. All rights reserved.