Class ApiKeyAuth
- java.lang.Object
-
- com.algorand.algosdk.kmd.client.auth.ApiKeyAuth
-
- All Implemented Interfaces:
Authentication
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<Pair> queryParams, Map<String,String> headerParams)
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<Pair> queryParams, Map<String,String> headerParams)
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 parameters
-
-