com.stimulsoft.base.licenses
Class StiLicenseKey

java.lang.Object
  extended by com.stimulsoft.base.licenses.StiLicenseObject
      extended by com.stimulsoft.base.licenses.StiLicenseKey

public class StiLicenseKey
extends StiLicenseObject

Copyright Stimulsoft


Field Summary
 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 Summary
StiLicenseKey()
           
 
Method Summary
 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)
           
 
Methods inherited from class com.stimulsoft.base.licenses.StiLicenseObject
decryptFromBytes, decryptFromString, encryptToBytes, encryptToString, getEncryptKey, saveToBytesInternal
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

StiLicenseKey

public StiLicenseKey()
Method Detail

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