public final class LicensingFacade
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
confirmationStamps |
java.util.Date |
expirationDate |
java.util.Map<java.lang.String,java.util.Date> |
expirationDates |
static LicensingFacade |
INSTANCE |
boolean |
isEvaluation |
java.lang.String |
licensedTo |
java.lang.String |
metadata |
java.util.Date |
perpetualFallbackDate |
java.util.List<java.lang.String> |
restrictions |
Constructor and Description |
---|
LicensingFacade() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConfirmationStamp(java.lang.String productCode) |
java.util.Date |
getExpirationDate(java.lang.String productCode) |
static LicensingFacade |
getInstance() |
java.lang.String |
getLicensedToMessage() |
java.util.Date |
getLicenseExpirationDate() |
java.util.List<java.lang.String> |
getLicenseRestrictionsMessages() |
boolean |
isApplicableForProduct(java.util.Date releaseDate) |
boolean |
isEvaluationLicense() |
boolean |
isPerpetualForProduct(java.util.Date releaseDate) |
public java.lang.String licensedTo
public java.util.List<java.lang.String> restrictions
public boolean isEvaluation
public java.util.Date expirationDate
public java.util.Date perpetualFallbackDate
public java.util.Map<java.lang.String,java.util.Date> expirationDates
public java.util.Map<java.lang.String,java.lang.String> confirmationStamps
public java.lang.String metadata
public static volatile LicensingFacade INSTANCE
public static LicensingFacade getInstance()
public java.lang.String getLicensedToMessage()
public java.util.List<java.lang.String> getLicenseRestrictionsMessages()
public boolean isEvaluationLicense()
public boolean isApplicableForProduct(java.util.Date releaseDate)
public boolean isPerpetualForProduct(java.util.Date releaseDate)
public java.util.Date getLicenseExpirationDate()
public java.util.Date getExpirationDate(java.lang.String productCode)
productCode
- the product code to lookup the expiration date forpublic java.lang.String getConfirmationStamp(java.lang.String productCode)
productCode
- confirmationStamp := key:'license-key' | stamp:'license-server-stamp' | eval:'eval-key'
licenseKey := 'licensId'-'licenseJsonBase64'-'signatureBase64'-'certificateBase64'
the signed part is licenseJson
license-server-stamp := 'timestampLong':'machineId':'signatureType':'signatureBase64':'certificateBase64'[:'intermediate-certificateBase64']
the signed part is 'timestampLong':'machineId'
machineId should be the same asPermanentInstallationID.get()
returns
eval-key := 'expiration-date-long'