Package com.stackrox.invoker.auth
Class ApiKeyAuth
- java.lang.Object
-
- com.stackrox.invoker.auth.ApiKeyAuth
-
- All Implemented Interfaces:
Authentication
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-01-17T12:38:53.222196Z[Etc/UTC]") 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 void
applyToParams(List<com.stackrox.invoker.Pair> queryParams, Map<String,String> headerParams, Map<String,String> cookieParams, String payload, String method, URI uri)
Apply authentication settings to header and query params.String
getApiKey()
String
getApiKeyPrefix()
String
getLocation()
String
getParamName()
void
setApiKey(String apiKey)
void
setApiKeyPrefix(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<com.stackrox.invoker.Pair> queryParams, Map<String,String> headerParams, Map<String,String> cookieParams, String payload, String method, URI uri) throws com.stackrox.invoker.ApiException
Description copied from interface:Authentication
Apply authentication settings to header and query params.- Specified by:
applyToParams
in interfaceAuthentication
- Parameters:
queryParams
- List of query parametersheaderParams
- Map of header parameterscookieParams
- Map of cookie parameterspayload
- HTTP request bodymethod
- HTTP methoduri
- URI- Throws:
com.stackrox.invoker.ApiException
- if failed to update the parameters
-
-