Enum Class ValidationResultType

java.lang.Object
java.lang.Enum<ValidationResultType>
dev.demeng.sentinel.client.license.validation.ValidationResultType
All Implemented Interfaces:
Serializable, Comparable<ValidationResultType>, Constable

public enum ValidationResultType extends Enum<ValidationResultType>
The type of a license validation result, indicating whether validation succeeded and, if not, the specific reason for failure.
  • Enum Constant Details

    • SUCCESS

      public static final ValidationResultType SUCCESS
      The license is valid.
    • INVALID_PRODUCT

      public static final ValidationResultType INVALID_PRODUCT
      The product validation failed. Check ValidationResult.getMessage() to distinguish between: product not found, license belonging to a different product, or auto-creation not enabled for the product.
    • INVALID_LICENSE

      public static final ValidationResultType INVALID_LICENSE
      The license key is not recognized.
    • INVALID_PLATFORM

      public static final ValidationResultType INVALID_PLATFORM
      Auto-creation was attempted but the request is missing a connection platform or value.
    • EXPIRED_LICENSE

      public static final ValidationResultType EXPIRED_LICENSE
      The license has expired.
    • BLACKLISTED_LICENSE

      public static final ValidationResultType BLACKLISTED_LICENSE
      The license has been blacklisted.
    • CONNECTION_MISMATCH

      public static final ValidationResultType CONNECTION_MISMATCH
      The connection value does not match the license's registered connection.
    • EXCESSIVE_SERVERS

      public static final ValidationResultType EXCESSIVE_SERVERS
      The license has exceeded its maximum number of concurrent servers.
    • EXCESSIVE_IPS

      public static final ValidationResultType EXCESSIVE_IPS
      The license has exceeded its maximum number of concurrent IP addresses.
    • UNKNOWN

      public static final ValidationResultType UNKNOWN
      An unrecognized validation result type returned by the API.
  • Method Details

    • values

      public static ValidationResultType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ValidationResultType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromString

      public static ValidationResultType fromString(@Nullable String value)
      Converts a string value to a ValidationResultType, returning UNKNOWN if the value is null or unrecognized.
      Parameters:
      value - the string representation of the result type
      Returns:
      the matching enum constant, or UNKNOWN