Package com.auth0.client.mgmt
Class BlacklistsEntity
java.lang.Object
com.auth0.client.mgmt.BlacklistsEntity
Class that provides an implementation of the Blacklists methods of the Management API as defined in https://auth0.com/docs/api/management/v2#!/Blacklists
This class is not thread-safe.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final okhttp3.HttpUrlprotected final Auth0HttpClientprotected final TokenProvider -
Method Summary
Modifier and TypeMethodDescriptionblacklistToken(Token token) Add a Token to the Blacklist.getBlacklist(String audience) Request all the Blacklisted Tokens with a given audience.protected <T> Request<T>request(HttpMethod method, com.fasterxml.jackson.core.type.TypeReference<T> target, Consumer<com.auth0.client.mgmt.RequestBuilder<T>> customizer) voidRequest(HttpMethod method, Consumer<com.auth0.client.mgmt.RequestBuilder<Void>> customizer)
-
Field Details
-
client
-
baseUrl
protected final okhttp3.HttpUrl baseUrl -
tokenProvider
-
-
Method Details
-
getBlacklist
Request all the Blacklisted Tokens with a given audience. A token with scope blacklist:tokens is needed. See https://auth0.com/docs/api/management/v2#!/Blacklists/get_tokens.- Parameters:
audience- the token audience (aud).- Returns:
- a Request to execute.
-
blacklistToken
Add a Token to the Blacklist. A token with scope blacklist:tokens is needed. See https://auth0.com/docs/api/management/v2#!/Blacklists/post_tokens.- Parameters:
token- the token to blacklist.- 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)
-