Package com.dtsx.astra.sdk.org
Class KeysClient
java.lang.Object
com.dtsx.astra.sdk.AbstractApiClient
com.dtsx.astra.sdk.org.KeysClient
Workshop with key management.
-
Field Summary
Fields inherited from class com.dtsx.astra.sdk.AbstractApiClient
environment, token
-
Constructor Summary
ConstructorDescriptionKeysClient
(String token) As immutable object use builder to initiate the object.KeysClient
(String token, ApiLocator.AstraEnvironment env) As immutable object use builder to initiate the object. -
Method Summary
Methods inherited from class com.dtsx.astra.sdk.AbstractApiClient
assertHttpCodeAccepted, DELETE, GET, getHttpClient, getToken, HEAD, PATCH, POST, POST, PUT
-
Constructor Details
-
KeysClient
As immutable object use builder to initiate the object.- Parameters:
token
- authenticated token
-
KeysClient
As immutable object use builder to initiate the object.- Parameters:
env
- define target environment to be usedtoken
- authenticated token
-
-
Method Details
-
findAll
List keys in a Organizations.- Returns:
- list of keys in target organization.
-
createKey
Create a new key.- Parameters:
keyDef
- key definition request- Returns:
- new role created
-