Interface JwtLicenseKeyData

    • Method Detail

      • getFormatVersion

        @NotNull
        String getFormatVersion()
        Returns:
        format version, e.g. "TCS-1"
      • getOriginalLicenseDescription

        @NotNull
        String getOriginalLicenseDescription()
        Sometimes, TeamCity can change the type of license. For example in case of expired JWT Enterprise we convert it to ServerLicenseType.JWT_PROFESSIONAL This method returns human-readable license type before the possible convertion for the UI (unlike LicenseKeyData.describeLicense()).
        Returns:
        see above
      • getLicenseId

        @NotNull
        String getLicenseId()
        Returns:
        license id
      • getInstPubKey

        @NotNull
        String getInstPubKey()
        Returns:
        public key of instance, associated with this license
      • getValidFrom

        @NotNull
        Date getValidFrom()
        Returns:
        date from when this license is valid
      • getJwtExpirationDate

        @NotNull
        Date getJwtExpirationDate()
        Returns:
        expiration date of the JWT token (can be different to license's expiration date)
      • getAgentsUpgradeDueDate

        @NotNull
        Map<String,​Integer> getAgentsUpgradeDueDate()
        Returns map of agent licenses, key stands for the upgrade due date (or "unlimited" string) and value stands for the number of agents with this upgrade due date.
        Returns:
        see above
      • getActiveAgentsUpgradeDueDate

        @NotNull
        Map<String,​Integer> getActiveAgentsUpgradeDueDate()
        Same as getAgentsUpgradeDueDate(), but filters agents, which are outdated for this version
        Returns:
        see above
      • getTruncatedAgentsUpgradeDueDate

        @NotNull
        Map<String,​Integer> getTruncatedAgentsUpgradeDueDate()
        Same as getAgentsUpgradeDueDate(), but is truncated and grouped by days in UTC. Mostly for UI purposes.
        Returns:
        see above