public class Connector extends Object
| Constructor and Description |
|---|
Connector() |
| Modifier and Type | Method and Description |
|---|---|
ValidationResult |
validateApiKey(String adminKey,
String adminSecretKey,
String apikey,
String api)
Wrapper method without the method parameter
|
ValidationResult |
validateApiKey(String adminKey,
String adminSecretKey,
String apikey,
String api,
String method)
convenience method for validateApiKey() method that creates the ValidationRequest object with separate parameters
|
ValidationResult |
validateApiKey(ValidationRequest validationRequest)
Takes a ValidationRequest object containing the authentication details, the apikey to be checked, the calling API
and the method (optional).
|
public ValidationResult validateApiKey(ValidationRequest validationRequest) throws ApiKeyValidationException
validationRequest - objectApiKeyValidationExceptionpublic ValidationResult validateApiKey(String adminKey, String adminSecretKey, String apikey, String api, String method) throws ApiKeyValidationException
adminKey - apikey with level set to ADMINadminSecretKey - secret key associated with adminKeyapikey - the apikey to be validatedapi - the API for which the apikey needs to be validatedmethod - the method for which the apikey needs to be validatedApiKeyValidationExceptionpublic ValidationResult validateApiKey(String adminKey, String adminSecretKey, String apikey, String api) throws ApiKeyValidationException
adminKey - apikey with level set to ADMINadminSecretKey - secret key associated with adminKeyapikey - the apikey to be validatedapi - the API for which the apikey needs to be validatedApiKeyValidationExceptionCopyright © 2018. All rights reserved.