Package com.stimulsoft.base.licenses
Class StiLicenseObject
java.lang.Object
com.stimulsoft.base.licenses.StiLicenseObject
- Direct Known Subclasses:
StiLicenseActivationRequest,StiLicenseActivationResponse,StiLicenseKey,StiTrialLicenseKey
Copyright Stimulsoft
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecryptFromBytes(byte[] bytes) voiddecryptFromString(String str) byte[]voidloadFromString(String str) byte[]
-
Constructor Details
-
StiLicenseObject
public StiLicenseObject()
-
-
Method Details
-
getEncryptKey
-
loadFromString
- Throws:
JSONException
-
saveToString
- Throws:
JSONException
-
saveToBytes
-
decryptFromBytes
public void decryptFromBytes(byte[] bytes) throws InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException, NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException, UnsupportedEncodingException, JSONException -
encryptToBytes
public byte[] encryptToBytes() throws UnsupportedEncodingException, JSONException, InvalidKeyException, NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException, InvalidAlgorithmParameterException -
encryptToString
-
decryptFromString
public void decryptFromString(String str) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException, UnsupportedEncodingException, IllegalBlockSizeException, BadPaddingException, JSONException, InvalidAlgorithmParameterException
-