Package jetbrains.buildServer.serverSide
Interface LicenseKey
-
- All Known Implementing Classes:
AbstractLicenseKey,JwtLicenseKey,LicenseKeyImpl
public interface LicenseKey
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetKey()LicenseKeyDatagetLicenseKeyData()StringgetUniquePartOfKey()StringgetValidateError()booleanhasMaintenancePeriodValidFor(Date date)booleanisEAPLicenseKey()booleanisEnterpriseLicense()booleanisJwtProfessionalLicense()booleanisLicenseExpiringIn(int days)booleanisMaintenanceExpiringIn(int days)booleanisMultipleTrialKey()booleanisObsolete()booleanisOpenSourceLicenseKey()booleanisPerUsageLicense()booleanisTrialLicenseKey()booleanisUnlimitedAgentsLicense()booleanisValid()
-
-
-
Method Detail
-
getKey
String getKey()
- Returns:
- license key itself
-
isMaintenanceExpiringIn
boolean isMaintenanceExpiringIn(int days)
-
isLicenseExpiringIn
boolean isLicenseExpiringIn(int days)
-
getUniquePartOfKey
String getUniquePartOfKey()
-
isValid
boolean isValid()
- Returns:
- true if key is valid
-
getValidateError
String getValidateError()
- Returns:
- validation error if it exists
-
isTrialLicenseKey
boolean isTrialLicenseKey()
-
isMultipleTrialKey
boolean isMultipleTrialKey()
- Returns:
- true if number of performed trials should not be checked for this key
-
isEAPLicenseKey
boolean isEAPLicenseKey()
-
hasMaintenancePeriodValidFor
boolean hasMaintenancePeriodValidFor(@NotNull Date date)- Parameters:
date-- Returns:
- true if this key maintenance period covers provided date
-
isEnterpriseLicense
boolean isEnterpriseLicense()
-
isOpenSourceLicenseKey
boolean isOpenSourceLicenseKey()
-
isUnlimitedAgentsLicense
boolean isUnlimitedAgentsLicense()
-
isPerUsageLicense
boolean isPerUsageLicense()
-
isJwtProfessionalLicense
boolean isJwtProfessionalLicense()
-
isObsolete
boolean isObsolete()
- Returns:
- true if current server release date is after the maintenance date written in the key
-
getLicenseKeyData
@Nullable LicenseKeyData getLicenseKeyData()
- Returns:
- license key information, or null if license key was not recognized
-
-