Package sh.ory.auth
Class ApiKeyAuth
java.lang.Object
sh.ory.auth.ApiKeyAuth
- All Implemented Interfaces:
Authentication
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-04-19T11:31:27.587817519Z[Etc/UTC]") public class ApiKeyAuth extends Object implements Authentication
-
Constructor Summary
Constructors Constructor Description ApiKeyAuth(String location, String paramName) -
Method Summary
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)
-
Constructor Details
-
ApiKeyAuth
-
-
Method Details
-
getLocation
-
getParamName
-
getApiKey
-
setApiKey
-
getApiKeyPrefix
-
setApiKeyPrefix
-
applyToParams
public void applyToParams(List<Pair> queryParams, Map<String,String> headerParams, Map<String,String> cookieParams, String payload, String method, URI uri) throws ApiExceptionDescription 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
-