Package io.gravitee.gateway.api.service
Interface ApiKeyService
public interface ApiKeyService
This manages api keys.
-
Method Summary
Modifier and TypeMethodDescriptiongetByApiAndKey(String api, String key) Get api key by its api and key.getByApiAndMd5Key(String api, String md5ApiKey) Get api key by its api and md5 hash of the key.voidRegister the given api key.voidunregister(ApiKey apiKey) voidunregisterByApiId(String apiId) Unregister all api key from the given api id.
-
Method Details
-
register
Register the given api key. Will load it if active, or unload it otherwise.- Parameters:
apiKey- the api key to register
-
unregister
-
unregisterByApiId
Unregister all api key from the given api id.- Parameters:
apiId- the api id attached to apikeys to unregister
-
getByApiAndKey
Get api key by its api and key.- Parameters:
api- Searched apikey- Searched key- Returns:
- Found ApiKey
-
getByApiAndMd5Key
Get api key by its api and md5 hash of the key.- Parameters:
api- Searched apimd5ApiKey- Searched md5 hash of the key- Returns:
- Found ApiKey
-