Class AttackProtectionEntity

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

public class AttackProtectionEntity extends Object
Class that provides an implementation of the Attack Protection methods of the Management API as defined in
See Also:
ManagementAPI
  • Field Details

    • client

      protected final okhttp3.OkHttpClient client
    • baseUrl

      protected final okhttp3.HttpUrl baseUrl
    • apiToken

      protected final String apiToken
  • Method Details

    • getBreachedPasswordSettings

      public Request<BreachedPassword> getBreachedPasswordSettings()
      Gets the breached password detection settings.
      Returns:
      the breached password detection settings.
      See Also:
    • updateBreachedPasswordSettings

      public Request<BreachedPassword> updateBreachedPasswordSettings(BreachedPassword breachedPassword)
      Update the breached password detection settings.
      Parameters:
      breachedPassword - the updated breached password detection settings.
      Returns:
      the updated breached password detection settings.
      See Also:
    • getBruteForceConfiguration

      public Request<BruteForceConfiguration> getBruteForceConfiguration()
      Gets the brute force configuration
      Returns:
      the brute force configuration
      See Also:
    • updateBruteForceConfiguration

      public Request<BruteForceConfiguration> updateBruteForceConfiguration(BruteForceConfiguration configuration)
      Update the brute force configuration
      Parameters:
      configuration - the updated brute force configuration
      Returns:
      the updated brute force configuration
      See Also:
    • getSuspiciousIPThrottlingConfiguration

      public Request<SuspiciousIPThrottlingConfiguration> getSuspiciousIPThrottlingConfiguration()
      Gets the suspicious IP throttling configuration
      Returns:
      the suspicious IP throttling configuration
      See Also:
    • updateSuspiciousIPThrottlingConfiguration

      public Request<SuspiciousIPThrottlingConfiguration> updateSuspiciousIPThrottlingConfiguration(SuspiciousIPThrottlingConfiguration configuration)
      Update the suspicious IP throttling configuration
      Parameters:
      configuration - the updated suspicious IP throttling configuration
      Returns:
      the updated suspicious IP throttling configuration
      See Also:
    • voidRequest

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

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