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 String
getKey()
LicenseKeyData
getLicenseKeyData()
String
getUniquePartOfKey()
String
getValidateError()
boolean
hasMaintenancePeriodValidFor(Date date)
boolean
isEAPLicenseKey()
boolean
isEnterpriseLicense()
boolean
isJwtProfessionalLicense()
boolean
isLicenseExpiringIn(int days)
boolean
isMaintenanceExpiringIn(int days)
boolean
isMultipleTrialKey()
boolean
isObsolete()
boolean
isOpenSourceLicenseKey()
boolean
isPerUsageLicense()
boolean
isTrialLicenseKey()
boolean
isUnlimitedAgentsLicense()
boolean
isValid()
-
-
-
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
-
-