Class License


  • public abstract class License
    extends Object
    Base license implementation.
    • Constructor Detail

      • License

        public License()
    • Method Detail

      • getVersion

        public String getVersion()
        Returns license version.
        Returns:
        license version
      • getType

        public License.Type getType()
        Returns license type.
        Returns:
        license type
      • getCustomer

        public License.Customer getCustomer()
        Returns license customer.
        Returns:
        license customer
      • getIntervalStart

        public LocalDate getIntervalStart()
        Returns license validity interval start date.
        Returns:
        license validity interval start date
      • getIntervalEnd

        public LocalDate getIntervalEnd()
        Returns license validity interval end date.
        Returns:
        license validity interval end date
      • isExpired

        public boolean isExpired()
        Returns whether license is expired.
        Returns:
        whether license is expired
      • getDaysLeft

        public int getDaysLeft()
        Returns the number of days left until license is expired.
        Returns:
        number of days left until license is expired
      • isExpiredWithinDays

        public boolean isExpiredWithinDays​(int days)
        Returns whether license is expiring within the specified number of days.
        Parameters:
        days - days number
        Returns:
        whether license is expiring within the specified number of days