Class KeysEntity

java.lang.Object
com.auth0.client.mgmt.KeysEntity

public class KeysEntity extends Object
Class that provides an implementation of the Keys methods of the Management API as defined in https://auth0.com/docs/api/management/v2#!/Keys

This class is not thread-safe.

See Also:
  • Field Details

    • client

      protected final Auth0HttpClient client
    • baseUrl

      protected final okhttp3.HttpUrl baseUrl
    • tokenProvider

      protected final TokenProvider tokenProvider
  • Method Details

    • list

      public Request<List<Key>> list()
      Request all Application Signing Keys. A token with read:signing_keys is needed See https://auth0.com/docs/api/management/v2#!/Keys/get_signing_keys
      Returns:
      a Request to execute
    • get

      public Request<Key> get(String kid)
      Request an Application Signing Key. A token with scope read:signing_keys is needed. See https://auth0.com/docs/api/management/v2#!/Keys/get_signing_key
      Parameters:
      kid - the id of the Application Signing Key to retrieve.
      Returns:
      a Request to execute.
    • rotate

      public Request<Key> rotate()
      Rotate the Application Signing Key. A token with scope create:signing_keys and update:signing_keys is needed. See https://auth0.com/docs/api/management/v2#!/Keys/post_signing_keys
      Returns:
      a Request to execute.
    • revoke

      public Request<Key> revoke(String kid)
      Revoke an Application Signing Key. A token with scope update:signing_keys is needed. See https://auth0.com/docs/api/management/v2#!/Keys/put_signing_keys
      Parameters:
      kid - the id of the Application Signing Key to revoke.
      Returns:
      a Request to execute.
    • postEncryptionRekey

      public Request<Void> postEncryptionRekey()
      Perform rekeying operation on the key hierarchy. A token with scope create:encryption_keys and update:encryption_keys is needed See https://auth0.com/docs/api/management/v2#!/Keys/post-encryption-rekey
      Returns:
      a Request to execute.
    • voidRequest

      protected Request<Void> voidRequest(HttpMethod method, Consumer<com.auth0.client.mgmt.RequestBuilder<Void>> customizer)
    • request

      protected <T> Request<T> request(HttpMethod method, com.fasterxml.jackson.core.type.TypeReference<T> target, Consumer<com.auth0.client.mgmt.RequestBuilder<T>> customizer)