Class KeysClient

java.lang.Object
com.dtsx.astra.sdk.AbstractApiClient
com.dtsx.astra.sdk.org.KeysClient

public class KeysClient extends AbstractApiClient
Workshop with key management.
  • Constructor Details

    • KeysClient

      public KeysClient(String token)
      As immutable object use builder to initiate the object.
      Parameters:
      token - authenticated token
    • KeysClient

      public KeysClient(String token, ApiLocator.AstraEnvironment env)
      As immutable object use builder to initiate the object.
      Parameters:
      env - define target environment to be used
      token - authenticated token
  • Method Details

    • findAll

      public Stream<Key> findAll()
      List keys in a Organizations.
      Returns:
      list of keys in target organization.
    • createKey

      public Object createKey(KeyDefinition keyDef)
      Create a new key.
      Parameters:
      keyDef - key definition request
      Returns:
      new role created