Class LicenseKeyInfo


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

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static LicenseKeyInfo getCurrent()
      Get the current LicenseKeyInfo which show the state of the current license
      java.lang.String getErrorMessage()
      Get the error message if the license is invalid
      java.lang.String getLicensee()
      Returns the licensee of the license.
      com.inet.config.LicenseInfo getLicenseInfo()
      FOR INTERNAL USE ONLY Get the underlying LicenseInfo.
      java.lang.String getLicenseText()
      Returns a text description of the license
      java.lang.String getWaterMark()
      The watermark text
      boolean hasExpiredDate()
      Check if there is an expires date.
      boolean isPlus()
      Returns whether or not the license is an i-net Clear Reports Plus license.
      boolean isSite()
      Returns whether the license is a Site license or not.
      boolean isValid()
      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 Detail

      • LicenseKeyInfo

        public LicenseKeyInfo​(java.lang.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:
        java.lang.RuntimeException - if a creation is impossible
        Since:
        14.0
    • Method Detail

      • getCurrent

        @Nonnull
        public static final 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 java.lang.String getLicenseText()
        Returns a text description of the license
        Returns:
        text description of the license
        Since:
        8.0
      • getLicensee

        public final java.lang.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 java.lang.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 java.lang.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