Package eu.europeana.apikey.client
Class Client
- java.lang.Object
-
- eu.europeana.apikey.client.Client
-
public class Client extends Object
Created by luthien on 11/05/2017.- Author:
- GordeaS Utility to facilitate connecting to the Apikey Service and checking validity of Apikeys. For performance reasons it is adviced that Applications instatiate this class once for a given URL (service endpoint).
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetApiKeyServiceUrl()ApiKeyValidationResultvalidateApiKey(String apikey)Wrapper method without the method parameter
-
-
-
Constructor Detail
-
Client
public Client()
-
Client
public Client(String apiKeyServiceUrl)
-
-
Method Detail
-
validateApiKey
public ApiKeyValidationResult validateApiKey(String apikey) throws ApiKeyValidationException
Wrapper method without the method parameter- Parameters:
apikey- the apikey to be validated- Returns:
- ApiKeyValidationResult object
- Throws:
ApiKeyValidationException
-
getApiKeyServiceUrl
protected String getApiKeyServiceUrl() throws ApiKeyValidationException
- Throws:
ApiKeyValidationException
-
-