@Path(value="apikey") public class ApiKeyManager extends Object
| Constructor and Description |
|---|
ApiKeyManager() |
| Modifier and Type | Method and Description |
|---|---|
String |
generateApiKey(String qualifier,
javax.servlet.http.HttpServletRequest req)
Generates an api key.
|
void |
removeApiKey(String key,
javax.servlet.http.HttpServletRequest req)
removes an api key.
|
org.gcube.common.authorization.library.QualifiersList |
retrieveApiKeys(javax.servlet.http.HttpServletRequest req)
retrieves the AuthorzationEntry connected to the specified token
|
@PUT @Consumes(value="application/xml") public String generateApiKey(@QueryParam(value="qualifier") String qualifier, @Context javax.servlet.http.HttpServletRequest req)
serviceName - the name of the client that will use this apikey@GET
@Produces(value="application/xml")
public org.gcube.common.authorization.library.QualifiersList retrieveApiKeys(@Context
javax.servlet.http.HttpServletRequest req)
token - @Path(value="{key}")
@DELETE
public void removeApiKey(@PathParam(value="key")
String key,
@Context
javax.servlet.http.HttpServletRequest req)
the - key to removeCopyright © 2018. All Rights Reserved.