com.stimulsoft.base.licenses
Class StiLicenseObject

java.lang.Object
  extended by com.stimulsoft.base.licenses.StiLicenseObject
Direct Known Subclasses:
StiLicenseActivationRequest, StiLicenseActivationResponse, StiLicenseKey

public abstract class StiLicenseObject
extends Object

Copyright Stimulsoft


Constructor Summary
StiLicenseObject()
           
 
Method Summary
 void decryptFromBytes(byte[] bytes)
           
 void decryptFromString(String str)
           
 byte[] encryptToBytes()
           
 String encryptToString()
           
 String getEncryptKey()
           
 void loadFromString(String str)
           
 byte[] saveToBytesInternal()
           
 String saveToString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StiLicenseObject

public StiLicenseObject()
Method Detail

getEncryptKey

public String getEncryptKey()

loadFromString

public void loadFromString(String str)
                    throws JSONException
Throws:
JSONException

saveToString

public String saveToString()
                    throws JSONException
Throws:
JSONException

saveToBytesInternal

public byte[] saveToBytesInternal()
                           throws JSONException,
                                  UnsupportedEncodingException
Throws:
JSONException
UnsupportedEncodingException

decryptFromBytes

public void decryptFromBytes(byte[] bytes)
                      throws InvalidKeyException,
                             InvalidAlgorithmParameterException,
                             IllegalBlockSizeException,
                             BadPaddingException,
                             NoSuchAlgorithmException,
                             NoSuchProviderException,
                             NoSuchPaddingException,
                             UnsupportedEncodingException,
                             JSONException
Throws:
InvalidKeyException
InvalidAlgorithmParameterException
IllegalBlockSizeException
BadPaddingException
NoSuchAlgorithmException
NoSuchProviderException
NoSuchPaddingException
UnsupportedEncodingException
JSONException

encryptToBytes

public byte[] encryptToBytes()
                      throws UnsupportedEncodingException,
                             JSONException,
                             InvalidKeyException,
                             NoSuchAlgorithmException,
                             NoSuchProviderException,
                             NoSuchPaddingException,
                             IllegalBlockSizeException,
                             BadPaddingException,
                             InvalidAlgorithmParameterException
Throws:
UnsupportedEncodingException
JSONException
InvalidKeyException
NoSuchAlgorithmException
NoSuchProviderException
NoSuchPaddingException
IllegalBlockSizeException
BadPaddingException
InvalidAlgorithmParameterException

encryptToString

public String encryptToString()
                       throws InvalidKeyException,
                              UnsupportedEncodingException,
                              NoSuchAlgorithmException,
                              NoSuchProviderException,
                              NoSuchPaddingException,
                              IllegalBlockSizeException,
                              BadPaddingException,
                              JSONException,
                              InvalidAlgorithmParameterException
Throws:
InvalidKeyException
UnsupportedEncodingException
NoSuchAlgorithmException
NoSuchProviderException
NoSuchPaddingException
IllegalBlockSizeException
BadPaddingException
JSONException
InvalidAlgorithmParameterException

decryptFromString

public void decryptFromString(String str)
                       throws InvalidKeyException,
                              NoSuchAlgorithmException,
                              NoSuchProviderException,
                              NoSuchPaddingException,
                              UnsupportedEncodingException,
                              IllegalBlockSizeException,
                              BadPaddingException,
                              JSONException,
                              InvalidAlgorithmParameterException
Throws:
InvalidKeyException
NoSuchAlgorithmException
NoSuchProviderException
NoSuchPaddingException
UnsupportedEncodingException
IllegalBlockSizeException
BadPaddingException
JSONException
InvalidAlgorithmParameterException


Copyright © 2017 Stimulsoft. All Rights Reserved.