Class LicenseConnectionOperations

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

public final class LicenseConnectionOperations extends Object
Operations for managing license connections (platform-to-user mappings).

Obtain an instance via LicenseService.connections().

  • Method Details

    • add

      public License add(String key, Map<String,String> connections) throws SentinelException
      Adds connections to a license.
      Parameters:
      key - the license key
      connections - a map of platform names to user identifiers
      Returns:
      the updated license
      Throws:
      SentinelException - if a network or API error occurs
    • remove

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