Enum Class ValidateReply

java.lang.Object
java.lang.Enum<ValidateReply>
com.iizix.license.ValidateReply
All Implemented Interfaces:
Serializable, Comparable<ValidateReply>, Constable

public enum ValidateReply extends Enum<ValidateReply>
Enum replies used with IGenericLicenseSystem.validate() for the Designer, the Server or the License Manager.
  • Enum Constant Details

    • NOT_INITIALIZED

      public static final ValidateReply NOT_INITIALIZED
      License has not been initialized.
    • LICENSEE_MISSING

      public static final ValidateReply LICENSEE_MISSING
      Licensee information is missing.
    • NOT_REGISTERED

      public static final ValidateReply NOT_REGISTERED
      License has not been registered, not even off-line.
    • VALID_TRIAL

      public static final ValidateReply VALID_TRIAL
      Valid trial license.
    • TRAIL_EXPIRED

      public static final ValidateReply TRAIL_EXPIRED
      Invalid trial license, trial period has expired.
    • VALID

      public static final ValidateReply VALID
      License is valid.
    • VALID_ACTIVATION_REQUIRED

      public static final ValidateReply VALID_ACTIVATION_REQUIRED
      License is valid, but on-line activation is required.
    • BEFORE_VALIDITY_PERIOD

      public static final ValidateReply BEFORE_VALIDITY_PERIOD
      License validity is subject to a time period, and this period has not yet started.
    • AFTER_VALIDITY_PERIOD

      public static final ValidateReply AFTER_VALIDITY_PERIOD
      License validity is subject to a time period, and this period has reached its end.
    • ACTIVATION_PERIOD_EXHAUSTED

      public static final ValidateReply ACTIVATION_PERIOD_EXHAUSTED
      License may still be valid, but has not been activated with the License Server for more than 10 days. The license is therefore considered as invalid.
    • BROKEN

      public static final ValidateReply BROKEN
      License has been broken and cannot recover, please request a new license.
  • Field Details

    • value

      public final int value
      Fixed validity reply value in case the ordinal changes.
    • isValid

      public final boolean isValid
      Flag for valid.

      Please note that there might be another problem with the validity though. To verify this, a call to the license system must be done.

    • description

      public final String description
      The English description text message.
  • Method Details

    • values

      public static ValidateReply[] 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 ValidateReply 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
    • isValid

      public boolean isValid()
      Checks if license is valid.
      Returns:
      true if valid ore valid trial license.

      Please note that there might be another problem with the validity though. To verify this, a call to the license system must be done.

    • fromReplyValue

      public static ValidateReply fromReplyValue(int value)
      Finds the reply from a reply value.
      Parameters:
      value - The reply value to look up.
      Returns:
      The value, or null if not found.