Package jetbrains.buildServer.serverSide
Interface LicenseKeyData
-
- All Known Subinterfaces:
JwtLicenseKeyData
public interface LicenseKeyData
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
describeLicense()
Date
getExpirationDate()
Date
getGenerationDate()
int
getLicenseType()
Date
getMaintenanceDueDate()
int
getMajorVersion()
int
getMaxNumberOfAgents()
int
getMinorVersion()
int
getNumberOfAgents()
boolean
isLicenseExpired()
boolean
isTimeBasedLicense()
-
-
-
Method Detail
-
getLicenseType
int getLicenseType()
- Returns:
- type of license
-
getMajorVersion
int getMajorVersion()
- Returns:
- major version for which this key was generated
-
getMinorVersion
int getMinorVersion()
- Returns:
- minor version for which this key was generated
-
getGenerationDate
@NotNull Date getGenerationDate()
- Returns:
- date of key generation
-
getExpirationDate
Date getExpirationDate()
- Returns:
- date of key expiration for time-based license
-
getMaintenanceDueDate
Date getMaintenanceDueDate()
- Returns:
- date of end of maintenance
-
isTimeBasedLicense
boolean isTimeBasedLicense()
- Returns:
- true if license is time based (trial or open source)
-
isLicenseExpired
boolean isLicenseExpired()
- Returns:
- true if license is expired
-
getNumberOfAgents
int getNumberOfAgents()
- Returns:
- Number of agents written in the license key.
-
getMaxNumberOfAgents
int getMaxNumberOfAgents()
- Returns:
- Number of agents written in the license key for
ServerLicenseType.ENTERPRISE_PER_USAGE
license when it is *active*. Same asgetNumberOfAgents()
for all other license types.
-
describeLicense
String describeLicense()
- Returns:
- human readable description of the license
-
-