com.stimulsoft.base.licenses
Class StiLicenseKey
java.lang.Object
com.stimulsoft.base.licenses.StiLicenseObject
com.stimulsoft.base.licenses.StiLicenseKey
public class StiLicenseKey
- extends StiLicenseObject
Copyright Stimulsoft
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
activationDate
public StiDateTime activationDate
signature
public java.lang.String signature
owner
public java.lang.String owner
userName
public java.lang.String userName
startDate
public StiDateTime startDate
endDate
public StiDateTime endDate
deviceId
public java.lang.String deviceId
planId
public StiPlanIdent planId
products
public java.util.List<StiLicenseProduct> products
productName
public java.lang.String productName
productLogo
public byte[] productLogo
productFavIcon
public byte[] productFavIcon
productDescription
public java.lang.String productDescription
productUrl
public java.lang.String productUrl
StiLicenseKey
public StiLicenseKey()
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object
isServerLicense
public boolean isServerLicense()
isProductLicense
public boolean isProductLicense()
get
public static StiLicenseKey get(byte[] bytes)
get
public static StiLicenseKey get(java.lang.String str)
getCSharpCode
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
- 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
saveToString
public java.lang.String saveToString()
throws JSONException
- Overrides:
saveToString
in class StiLicenseObject
- Throws:
JSONException
loadFromString
public void loadFromString(java.lang.String str)
throws JSONException
- Overrides:
loadFromString
in class StiLicenseObject
- Throws:
JSONException
SaveToJsonObject
public JSONObject SaveToJsonObject(StiJsonSaveMode mode)
throws JSONException
- Throws:
JSONException
LoadFromJsonObject
public void LoadFromJsonObject(JSONObject jObject)
throws JSONException
- Throws:
JSONException
getActivationDate
public StiDateTime getActivationDate()
- Returns:
- the activationDate
setActivationDate
public void setActivationDate(StiDateTime activationDate)
- Parameters:
activationDate
- the activationDate to set
getSignature
public java.lang.String getSignature()
- Returns:
- the signature
setSignature
public void setSignature(java.lang.String signature)
- Parameters:
signature
- the signature to set
getOwner
public java.lang.String getOwner()
- Returns:
- the owner
setOwner
public void setOwner(java.lang.String owner)
- Parameters:
owner
- the owner to set
getUserName
public java.lang.String getUserName()
- Returns:
- the userName
setUserName
public void setUserName(java.lang.String userName)
- Parameters:
userName
- the userName to set
getStartDate
public StiDateTime getStartDate()
- Returns:
- the startDate
setStartDate
public void setStartDate(StiDateTime startDate)
- Parameters:
startDate
- the startDate to set
getEndDate
public StiDateTime getEndDate()
- Returns:
- the endDate
setEndDate
public void setEndDate(StiDateTime endDate)
- Parameters:
endDate
- the endDate to set
getDeviceId
public java.lang.String getDeviceId()
- Returns:
- the deviceId
setDeviceId
public void setDeviceId(java.lang.String deviceId)
- Parameters:
deviceId
- the deviceId to set
getPlanId
public StiPlanIdent getPlanId()
- Returns:
- the planId
setPlanId
public void setPlanId(StiPlanIdent planId)
- Parameters:
planId
- the planId to set
getProducts
public java.util.List<StiLicenseProduct> getProducts()
- Returns:
- the products
setProducts
public void setProducts(java.util.List<StiLicenseProduct> products)
- Parameters:
products
- the products to set
getProductName
public java.lang.String getProductName()
- Returns:
- the productName
setProductName
public void setProductName(java.lang.String productName)
- 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
public java.lang.String getProductDescription()
- Returns:
- the productDescription
setProductDescription
public void setProductDescription(java.lang.String productDescription)
- Parameters:
productDescription
- the productDescription to set
getProductUrl
public java.lang.String getProductUrl()
- Returns:
- the productUrl
setProductUrl
public void setProductUrl(java.lang.String productUrl)
- Parameters:
productUrl
- the productUrl to set