Class BlacklistsEntity

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

public class BlacklistsEntity extends Object
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 Details

    • client

      protected final Auth0HttpClient client
    • baseUrl

      protected final okhttp3.HttpUrl baseUrl
    • tokenProvider

      protected final TokenProvider tokenProvider
  • Method Details

    • getBlacklist

      public Request<List<Token>> getBlacklist(String audience)
      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

      public Request<Void> blacklistToken(Token token)
      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)