public class StiLicenseKey extends StiLicenseObject
| Modifier and Type | Field and Description |
|---|---|
StiDateTime |
activationDate |
java.lang.String |
deviceId |
StiDateTime |
endDate |
java.lang.String |
owner |
StiPlanIdent |
planId |
java.lang.String |
productDescription |
byte[] |
productFavIcon |
byte[] |
productLogo |
java.lang.String |
productName |
java.util.List<StiLicenseProduct> |
products |
java.lang.String |
productUrl |
java.lang.String |
signature |
StiDateTime |
startDate |
java.lang.String |
userName |
| Constructor and Description |
|---|
StiLicenseKey() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
static StiLicenseKey |
get(byte[] bytes) |
static StiLicenseKey |
get(java.lang.String str) |
StiDateTime |
getActivationDate() |
java.lang.String |
getCSharpCode() |
java.lang.String |
getDeviceId() |
StiDateTime |
getEndDate() |
java.lang.String |
getOwner() |
StiPlanIdent |
getPlanId() |
java.lang.String |
getProductDescription() |
byte[] |
getProductFavIcon() |
byte[] |
getProductLogo() |
java.lang.String |
getProductName() |
java.util.List<StiLicenseProduct> |
getProducts() |
java.lang.String |
getProductUrl() |
java.lang.String |
getSignature() |
StiDateTime |
getStartDate() |
java.lang.String |
getUserName() |
boolean |
isProductLicense() |
boolean |
isServerLicense() |
void |
LoadFromJsonObject(JSONObject jObject) |
void |
loadFromString(java.lang.String str) |
JSONObject |
SaveToJsonObject(StiJsonSaveMode mode) |
java.lang.String |
saveToString() |
void |
setActivationDate(StiDateTime activationDate) |
void |
setDeviceId(java.lang.String deviceId) |
void |
setEndDate(StiDateTime endDate) |
void |
setOwner(java.lang.String owner) |
void |
setPlanId(StiPlanIdent planId) |
void |
setProductDescription(java.lang.String productDescription) |
void |
setProductFavIcon(byte[] productFavIcon) |
void |
setProductLogo(byte[] productLogo) |
void |
setProductName(java.lang.String productName) |
void |
setProducts(java.util.List<StiLicenseProduct> products) |
void |
setProductUrl(java.lang.String productUrl) |
void |
setSignature(java.lang.String signature) |
void |
setStartDate(StiDateTime startDate) |
void |
setUserName(java.lang.String userName) |
decryptFromBytes, decryptFromString, encryptToBytes, encryptToString, getEncryptKey, saveToBytesInternalpublic StiDateTime activationDate
public java.lang.String signature
public java.lang.String owner
public java.lang.String userName
public StiDateTime startDate
public StiDateTime endDate
public java.lang.String deviceId
public StiPlanIdent planId
public java.util.List<StiLicenseProduct> products
public java.lang.String productName
public byte[] productLogo
public byte[] productFavIcon
public java.lang.String productDescription
public java.lang.String productUrl
public java.lang.Object clone()
clone in class java.lang.Objectpublic boolean isServerLicense()
public boolean isProductLicense()
public static StiLicenseKey get(byte[] bytes)
public static StiLicenseKey get(java.lang.String str)
public java.lang.String getCSharpCode()
throws java.security.InvalidKeyException,
java.io.UnsupportedEncodingException,
java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException,
javax.crypto.NoSuchPaddingException,
javax.crypto.IllegalBlockSizeException,
javax.crypto.BadPaddingException,
JSONException,
java.security.InvalidAlgorithmParameterException
java.security.InvalidKeyExceptionjava.io.UnsupportedEncodingExceptionjava.security.NoSuchAlgorithmExceptionjava.security.NoSuchProviderExceptionjavax.crypto.NoSuchPaddingExceptionjavax.crypto.IllegalBlockSizeExceptionjavax.crypto.BadPaddingExceptionJSONExceptionjava.security.InvalidAlgorithmParameterExceptionpublic java.lang.String saveToString()
throws JSONException
saveToString in class StiLicenseObjectJSONExceptionpublic void loadFromString(java.lang.String str)
throws JSONException
loadFromString in class StiLicenseObjectJSONExceptionpublic JSONObject SaveToJsonObject(StiJsonSaveMode mode) throws JSONException
JSONExceptionpublic void LoadFromJsonObject(JSONObject jObject) throws JSONException
JSONExceptionpublic StiDateTime getActivationDate()
public void setActivationDate(StiDateTime activationDate)
activationDate - the activationDate to setpublic java.lang.String getSignature()
public void setSignature(java.lang.String signature)
signature - the signature to setpublic java.lang.String getOwner()
public void setOwner(java.lang.String owner)
owner - the owner to setpublic java.lang.String getUserName()
public void setUserName(java.lang.String userName)
userName - the userName to setpublic StiDateTime getStartDate()
public void setStartDate(StiDateTime startDate)
startDate - the startDate to setpublic StiDateTime getEndDate()
public void setEndDate(StiDateTime endDate)
endDate - the endDate to setpublic java.lang.String getDeviceId()
public void setDeviceId(java.lang.String deviceId)
deviceId - the deviceId to setpublic StiPlanIdent getPlanId()
public void setPlanId(StiPlanIdent planId)
planId - the planId to setpublic java.util.List<StiLicenseProduct> getProducts()
public void setProducts(java.util.List<StiLicenseProduct> products)
products - the products to setpublic java.lang.String getProductName()
public void setProductName(java.lang.String productName)
productName - the productName to setpublic byte[] getProductLogo()
public void setProductLogo(byte[] productLogo)
productLogo - the productLogo to setpublic byte[] getProductFavIcon()
public void setProductFavIcon(byte[] productFavIcon)
productFavIcon - the productFavIcon to setpublic java.lang.String getProductDescription()
public void setProductDescription(java.lang.String productDescription)
productDescription - the productDescription to setpublic java.lang.String getProductUrl()
public void setProductUrl(java.lang.String productUrl)
productUrl - the productUrl to setCopyright © 2020 Stimulsoft. All Rights Reserved.