com.stimulsoft.base.licenses
Class StiLicenseActivationResponse

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

public class StiLicenseActivationResponse
extends StiLicenseObject

Copyright Stimulsoft


Field Summary
 java.lang.String exception
           
 StiLicenseKey licenseKey
           
 StiNotice resultNotice
           
 boolean resultSuccess
           
 
Constructor Summary
StiLicenseActivationResponse()
           
 
Method Summary
static StiLicenseActivationResponse get(byte[] bytes)
           
static StiLicenseActivationResponse get(java.lang.String str)
           
 java.lang.String getEncryptKey()
           
 java.lang.String getException()
          An information about exception which occurs during activation process.
 StiLicenseKey getLicenseKey()
           
 StiNotice getResultNotice()
          A message about the running command.
 boolean isResultSuccess()
          True or False value which depend on the status of the running command.
static StiLicenseActivationResponse makeFine(StiLicenseKey licenseKey)
           
static StiLicenseActivationResponse makeWrong(StiNotice notice)
           
 void setException(java.lang.String exception)
          An information about exception which occurs during activation process.
 void setLicenseKey(StiLicenseKey licenseKey)
           
 void setResultNotice(StiNotice resultNotice)
          A message about the running command.
 void setResultSuccess(boolean resultSuccess)
          True or False value which depend on the status of the running command.
 
Methods inherited from class com.stimulsoft.base.licenses.StiLicenseObject
decryptFromBytes, decryptFromString, encryptToBytes, encryptToString, loadFromString, saveToBytesInternal, saveToString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

licenseKey

public StiLicenseKey licenseKey

exception

public java.lang.String exception

resultSuccess

public boolean resultSuccess

resultNotice

public StiNotice resultNotice
Constructor Detail

StiLicenseActivationResponse

public StiLicenseActivationResponse()
Method Detail

getEncryptKey

public java.lang.String getEncryptKey()
Overrides:
getEncryptKey in class StiLicenseObject

getLicenseKey

public StiLicenseKey getLicenseKey()
Returns:
the licenseKey

setLicenseKey

public void setLicenseKey(StiLicenseKey licenseKey)
Parameters:
licenseKey - the licenseKey to set

getException

public java.lang.String getException()
An information about exception which occurs during activation process.

Returns:
the exception

setException

public void setException(java.lang.String exception)
An information about exception which occurs during activation process.

Parameters:
exception - the exception to set

isResultSuccess

public boolean isResultSuccess()
True or False value which depend on the status of the running command.

Returns:
the resultSuccess

setResultSuccess

public void setResultSuccess(boolean resultSuccess)
True or False value which depend on the status of the running command.

Parameters:
resultSuccess - the resultSuccess to set

getResultNotice

public StiNotice getResultNotice()
A message about the running command. This Result can be skipped.

Returns:
the resultNotice

setResultNotice

public void setResultNotice(StiNotice resultNotice)
A message about the running command. This Result can be skipped.

Parameters:
resultNotice - the resultNotice to set

makeWrong

public static StiLicenseActivationResponse makeWrong(StiNotice notice)

makeFine

public static StiLicenseActivationResponse makeFine(StiLicenseKey licenseKey)

get

public static StiLicenseActivationResponse get(byte[] bytes)
                                        throws java.security.InvalidKeyException,
                                               java.security.NoSuchAlgorithmException,
                                               java.security.NoSuchProviderException,
                                               javax.crypto.NoSuchPaddingException,
                                               java.io.UnsupportedEncodingException,
                                               javax.crypto.IllegalBlockSizeException,
                                               javax.crypto.BadPaddingException,
                                               JSONException,
                                               java.security.InvalidAlgorithmParameterException
Throws:
java.security.InvalidKeyException
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
javax.crypto.NoSuchPaddingException
java.io.UnsupportedEncodingException
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException
JSONException
java.security.InvalidAlgorithmParameterException

get

public static StiLicenseActivationResponse get(java.lang.String str)
                                        throws java.security.InvalidKeyException,
                                               java.security.NoSuchAlgorithmException,
                                               java.security.NoSuchProviderException,
                                               javax.crypto.NoSuchPaddingException,
                                               java.io.UnsupportedEncodingException,
                                               javax.crypto.IllegalBlockSizeException,
                                               javax.crypto.BadPaddingException,
                                               JSONException,
                                               java.security.InvalidAlgorithmParameterException
Throws:
java.security.InvalidKeyException
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
javax.crypto.NoSuchPaddingException
java.io.UnsupportedEncodingException
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException
JSONException
java.security.InvalidAlgorithmParameterException