Package com.twitter.clientlib.auth
Class ApiKeyAuth
- java.lang.Object
-
- com.twitter.clientlib.auth.ApiKeyAuth
-
- All Implemented Interfaces:
Authentication
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ApiKeyAuth extends Object implements Authentication
-
-
Constructor Summary
Constructors Constructor Description ApiKeyAuth(String location, String paramName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyToParams(List<Pair> queryParams, Map<String,String> headerParams, Map<String,String> cookieParams, String payload, String method, URI uri)Apply authentication settings to header and query params.StringgetApiKey()StringgetApiKeyPrefix()StringgetLocation()StringgetParamName()voidsetApiKey(String apiKey)voidsetApiKeyPrefix(String apiKeyPrefix)
-
-
-
Method Detail
-
getLocation
public String getLocation()
-
getParamName
public String getParamName()
-
getApiKey
public String getApiKey()
-
setApiKey
public void setApiKey(String apiKey)
-
getApiKeyPrefix
public String getApiKeyPrefix()
-
setApiKeyPrefix
public void setApiKeyPrefix(String apiKeyPrefix)
-
applyToParams
public void applyToParams(List<Pair> queryParams, Map<String,String> headerParams, Map<String,String> cookieParams, String payload, String method, URI uri) throws ApiException
Description copied from interface:AuthenticationApply authentication settings to header and query params.- Specified by:
applyToParamsin interfaceAuthentication- Parameters:
queryParams- List of query parametersheaderParams- Map of header parameterscookieParams- Map of cookie parameterspayload- HTTP request bodymethod- HTTP methoduri- URI- Throws:
ApiException- if failed to update the parameters
-
-