Package com.stimulsoft.base.licenses
Class StiLicenseKey
java.lang.Object
com.stimulsoft.base.licenses.StiLicenseObject
com.stimulsoft.base.licenses.StiLicenseKey
Copyright Stimulsoft
-
Field Summary
FieldsModifier and TypeFieldDescriptionbyte[]byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()static StiLicenseKeyget(byte[] bytes) static StiLicenseKeybyte[]getOwner()byte[]byte[]byte[]booleanbooleanvoidLoadFromJsonObject(JSONObject jObject) voidloadFromString(String str) voidsetActivationDate(StiDateTime activationDate) voidsetDeviceId(String deviceId) voidsetEndDate(StiDateTime endDate) voidvoidsetPlanId(StiPlanIdent planId) voidsetProductDescription(String productDescription) voidsetProductFavIcon(byte[] productFavIcon) voidsetProductLogo(byte[] productLogo) voidsetProductName(String productName) voidsetProducts(List<StiLicenseProduct> products) voidsetProductUrl(String productUrl) voidsetSignature(String signature) voidsetStartDate(StiDateTime startDate) voidsetUserName(String userName) Methods inherited from class com.stimulsoft.base.licenses.StiLicenseObject
decryptFromBytes, decryptFromString, encryptToBytes, encryptToString, getEncryptKey, saveToBytes
-
Field Details
-
activationDate
-
signature
-
owner
-
userName
-
startDate
-
endDate
-
deviceId
-
planId
-
products
-
productName
-
productLogo
public byte[] productLogo -
productFavIcon
public byte[] productFavIcon -
productDescription
-
productUrl
-
-
Constructor Details
-
StiLicenseKey
public StiLicenseKey()
-
-
Method Details
-
clone
-
isServerLicense
public boolean isServerLicense() -
isProductLicense
public boolean isProductLicense() -
get
-
get
-
getCSharpCode
-
getSignatureBytes
public byte[] getSignatureBytes() -
getCheckBytes
-
saveToString
- Overrides:
saveToStringin classStiLicenseObject- Throws:
JSONException
-
loadFromString
- Overrides:
loadFromStringin classStiLicenseObject- Throws:
JSONException
-
SaveToJsonObject
- Throws:
JSONException
-
LoadFromJsonObject
- Throws:
JSONException
-
getActivationDate
- Returns:
- the activationDate
-
setActivationDate
- Parameters:
activationDate- the activationDate to set
-
getSignature
- Returns:
- the signature
-
setSignature
- Parameters:
signature- the signature to set
-
getOwner
- Returns:
- the owner
-
setOwner
- Parameters:
owner- the owner to set
-
getUserName
- Returns:
- the userName
-
setUserName
- Parameters:
userName- the userName to set
-
getStartDate
- Returns:
- the startDate
-
setStartDate
- Parameters:
startDate- the startDate to set
-
getEndDate
- Returns:
- the endDate
-
setEndDate
- Parameters:
endDate- the endDate to set
-
getDeviceId
- Returns:
- the deviceId
-
setDeviceId
- Parameters:
deviceId- the deviceId to set
-
getPlanId
- Returns:
- the planId
-
setPlanId
- Parameters:
planId- the planId to set
-
getProducts
- Returns:
- the products
-
setProducts
- Parameters:
products- the products to set
-
getProductName
- Returns:
- the productName
-
setProductName
- Parameters:
productName- the productName to set
-
getProductLogo
public byte[] getProductLogo()- Returns:
- the productLogo
-
setProductLogo
public void setProductLogo(byte[] productLogo) - Parameters:
productLogo- the productLogo to set
-
getProductFavIcon
public byte[] getProductFavIcon()- Returns:
- the productFavIcon
-
setProductFavIcon
public void setProductFavIcon(byte[] productFavIcon) - Parameters:
productFavIcon- the productFavIcon to set
-
getProductDescription
- Returns:
- the productDescription
-
setProductDescription
- Parameters:
productDescription- the productDescription to set
-
getProductUrl
- Returns:
- the productUrl
-
setProductUrl
- Parameters:
productUrl- the productUrl to set
-