Class LicenseKeyInfo

java.lang.Object
com.inet.report.config.LicenseKeyInfo

public final class LicenseKeyInfo extends Object
Class providing information about a license key.
Since:
8.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    LicenseKeyInfo(String licenseKey)
    Blocks for 2 seconds, then returns an object holding information about the license key given.
  • Method Summary

    Modifier and Type
    Method
    Description
    static final @Nonnull LicenseKeyInfo
    Get the current LicenseKeyInfo which show the state of the current license
    final String
    Get the error message if the license is invalid
    final String
    Returns the licensee of the license.
    final com.inet.config.LicenseInfo
    FOR INTERNAL USE ONLY Get the underlying LicenseInfo.
    final String
    Returns a text description of the license
    final String
    The watermark text
    final boolean
    Check if there is an expires date.
    final boolean
    Returns whether or not the license is an i-net Clear Reports Plus license.
    final boolean
    Returns whether the license is a Site license or not.
    final boolean
    Returns whether the key is a valid license key or not.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LicenseKeyInfo

      public LicenseKeyInfo(String licenseKey)
      Blocks for 2 seconds, then returns an object holding information about the license key given.
      Parameters:
      licenseKey - License Key to check, null the LicenseKeyInfo of the current license will be return
      Throws:
      RuntimeException - if a creation is impossible
      Since:
      14.0
  • Method Details

    • getCurrent

      @Nonnull public static final @Nonnull LicenseKeyInfo getCurrent()
      Get the current LicenseKeyInfo which show the state of the current license
      Returns:
      the current LicenseKeyInfo
      Since:
      15.0
    • isPlus

      public final boolean isPlus()
      Returns whether or not the license is an i-net Clear Reports Plus license.
      Returns:
      whether the license is an i-net Clear Reports Plus license
      Since:
      8.0
    • getLicenseText

      public final String getLicenseText()
      Returns a text description of the license
      Returns:
      text description of the license
      Since:
      8.0
    • getLicensee

      public final String getLicensee()
      Returns the licensee of the license. This is null for an invalid license.
      Returns:
      licensee information
      Since:
      8.0
    • isValid

      public final boolean isValid()
      Returns whether the key is a valid license key or not.
      Returns:
      true if the key is a valid license key, false otherwise
      Since:
      8.0
    • getErrorMessage

      public final String getErrorMessage()
      Get the error message if the license is invalid
      Returns:
      the error message or null
      Since:
      15.0
    • hasExpiredDate

      public final boolean hasExpiredDate()
      Check if there is an expires date.
      Returns:
      true, if there a date
      Since:
      15.0
    • getWaterMark

      public final String getWaterMark()
      The watermark text
      Returns:
      the watermark or null.
      Since:
      15.0
    • isSite

      public final boolean isSite()
      Returns whether the license is a Site license or not.
      Returns:
      true if the license is a Site license, false otherwise
      Since:
      8.0
    • getLicenseInfo

      public final com.inet.config.LicenseInfo getLicenseInfo()
      FOR INTERNAL USE ONLY Get the underlying LicenseInfo.
      Returns:
      the LicenseInfo
      Since:
      15.0