public class CSFLELicense extends License
License.DeploymentScope, License.Type| Constructor and Description |
|---|
CSFLELicense(org.jose4j.jwt.JwtClaims claims,
org.apache.kafka.common.utils.Time clock,
String serialized)
Create a license with the supplied
JWT Claims. |
| Modifier and Type | Method and Description |
|---|---|
protected long |
expirationMillis() |
boolean |
expiresBefore(License other)
Determine if this license expires before the specified license
|
boolean |
isCSFLE() |
boolean |
isExpired()
Determine whether this license has expired.
|
boolean |
isRenewalOf(License other)
Determine if this license is a strict renewal of the specified license.
|
boolean |
isValid()
Determine whether this license is currently valid.
|
long |
timeRemaining(TimeUnit unit)
Get the amount of time in the specified units that remains before the license expires.
|
String |
toString() |
License.Type |
type()
Get the type of license.
|
audience, audienceString, baseClaims, deploymentScope, equals, expiration, expirationDate, expirationDateString, generateTrialLicense, getAudience, getExpiration, hasAddOnClaims, hashCode, hasLicenseType, hasMatchingAddOnClaims, hasMatchingClaims, isAddonUpdatedWithSameExpiry, isEnterprise, isEquivalentTo, isFreeTier, isInvalidLicense, isTrial, licenseId, loadPrivateKey, loadPublicKey, loadPublicKey, platformId, serializedForm, sign, subject, updatedAtMillis, verify, verifyMonitoring, verifyStoredpublic CSFLELicense(org.jose4j.jwt.JwtClaims claims,
org.apache.kafka.common.utils.Time clock,
String serialized)
JWT Claims.claims - the JWT claimsclock - the clock that can be used to compute the License.expirationDate();
may not be nullserialized - the serialized form of the license; may not be nullpublic long timeRemaining(TimeUnit unit)
LicensetimeRemaining in class Licenseunit - the unit for the returned time; may not be nullpublic boolean isExpired()
Licenseprotected long expirationMillis()
expirationMillis in class Licensepublic boolean isValid()
Licensepublic License.Type type()
type in class LicenseLicense.isFreeTier(),
License.isTrial()public boolean isCSFLE()
public boolean isRenewalOf(License other)
LicenseLicense.isEquivalentTo(License) except the
expiration time of this license must be later than
the specified license.isRenewalOf in class Licenseother - the other licenseother is a renewal of the previous licensepublic boolean expiresBefore(License other)
expiresBefore in class Licenseother - the other license; may be null