Class LicenseIpOperations

java.lang.Object
dev.demeng.sentinel.client.license.LicenseIpOperations

public final class LicenseIpOperations extends Object
Operations for managing license IP addresses.

Obtain an instance via LicenseService.ips().

  • Method Details

    • add

      public License add(String key, Set<String> addresses) throws SentinelException
      Adds IP addresses to a license.
      Parameters:
      key - the license key
      addresses - the set of IP addresses to add
      Returns:
      the updated license
      Throws:
      SentinelException - if a network or API error occurs
    • remove

      public License remove(String key, Set<String> addresses) throws SentinelException
      Removes IP addresses from a license.
      Parameters:
      key - the license key
      addresses - the set of IP addresses to remove
      Returns:
      the updated license
      Throws:
      SentinelException - if a network or API error occurs