Package jetbrains.buildServer.serverSide
Interface JwtLicenseKeyData
-
- All Superinterfaces:
LicenseKeyData
public interface JwtLicenseKeyData extends LicenseKeyData
Extended version ofLicenseKeyData
, providing data for JWT keys.- Author:
- Daniil.Boger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Integer>
getActiveAgentsUpgradeDueDate()
Same asgetAgentsUpgradeDueDate()
, but filters agents, which are outdated for this versionMap<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.String
getFormatVersion()
String
getInstPubKey()
Date
getJwtExpirationDate()
String
getLicenseId()
String
getOriginalLicenseDescription()
Sometimes, TeamCity can change the type of license.Map<String,Integer>
getTruncatedAgentsUpgradeDueDate()
Same asgetAgentsUpgradeDueDate()
, but is truncated and grouped by days in UTC.Date
getValidFrom()
-
Methods inherited from interface jetbrains.buildServer.serverSide.LicenseKeyData
describeLicense, getExpirationDate, getGenerationDate, getLicenseType, getMaintenanceDueDate, getMajorVersion, getMaxNumberOfAgents, getMinorVersion, getNumberOfAgents, isLicenseExpired, isTimeBasedLicense
-
-
-
-
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 toServerLicenseType.JWT_PROFESSIONAL
This method returns human-readable license type before the possible convertion for the UI (unlikeLicenseKeyData.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 asgetAgentsUpgradeDueDate()
, but filters agents, which are outdated for this version- Returns:
- see above
-
getTruncatedAgentsUpgradeDueDate
@NotNull Map<String,Integer> getTruncatedAgentsUpgradeDueDate()
Same asgetAgentsUpgradeDueDate()
, but is truncated and grouped by days in UTC. Mostly for UI purposes.- Returns:
- see above
-
-