Package com.auth0.client.mgmt
Class KeysEntity
java.lang.Object
com.auth0.client.mgmt.KeysEntity
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 Summary
FieldsModifier and TypeFieldDescriptionprotected final okhttp3.HttpUrlprotected final Auth0HttpClientprotected final TokenProvider -
Method Summary
Modifier and TypeMethodDescriptionRequest an Application Signing Key.list()Request all Application Signing Keys.Perform rekeying operation on the key hierarchy.protected <T> Request<T>request(HttpMethod method, com.fasterxml.jackson.core.type.TypeReference<T> target, Consumer<com.auth0.client.mgmt.RequestBuilder<T>> customizer) Revoke an Application Signing Key.rotate()Rotate the Application Signing Key.voidRequest(HttpMethod method, Consumer<com.auth0.client.mgmt.RequestBuilder<Void>> customizer)
-
Field Details
-
client
-
baseUrl
protected final okhttp3.HttpUrl baseUrl -
tokenProvider
-
-
Method Details
-
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
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
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
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
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)
-