Package org.rostore.client
Class ApiKeys
java.lang.Object
org.rostore.client.ApiKeys
Class is used to access and modify the api keys on the storage.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the api-key permissions by the keylistApiKeys
(String continuationKey) Lists all api keys.post
(VersionedObject<String, ApiKeyPermissions> apiKeyPermissions) Creates a new api-key and associate the permissions with itput
(VersionedObject<String, ApiKeyPermissions> apiKeyPermissions) Updates given api-key
-
Constructor Details
-
ApiKeys
-
-
Method Details
-
listApiKeys
Lists all api keys.The returning object is not complete. Check the
StringKeyList.isMore()
if this is the case.Use
StringKeyList.getContinuationKey()
to the the continuationKey for the next call to get the next pack of keys.- Parameters:
continuationKey
- is either continuation key to get the next package or null for the first call- Returns:
- the object is not complete, to check if more data is available use
StringKeyList.isMore()
-
post
public VersionedObject<String,ApiKeyPermissions> post(VersionedObject<String, ApiKeyPermissions> apiKeyPermissions) Creates a new api-key and associate the permissions with it- Parameters:
apiKeyPermissions
- the api-key and associated permissions- Returns:
- versioned object containing permissions
-
get
Get the api-key permissions by the key- Parameters:
key
- the api-key- Returns:
- versioned object containing permissions
-
put
public VersionedObject<String,ApiKeyPermissions> put(VersionedObject<String, ApiKeyPermissions> apiKeyPermissions) Updates given api-key- Parameters:
apiKeyPermissions
- object to update- Returns:
- the updated version
-