Package net.sourceforge.plantuml.version
Class PLSSignature
java.lang.Object
net.sourceforge.plantuml.version.PLSSignature
-
Constructor Summary
ConstructorsConstructorDescriptionPLSSignature
(int type, byte[] sha, long now, long exp, String owner, String context) -
Method Summary
Modifier and TypeMethodDescriptionstatic PLSSignature
fromRaw512
(byte[] data) static byte[]
static LicenseInfo
static byte[]
static LicenseInfo
retrieveNamed
(String sig, String key, boolean doCheck) static byte[]
static void
xor
(byte[] buffer, byte[] key)
-
Constructor Details
-
PLSSignature
-
-
Method Details
-
retrieveDistributorImageSignature
public static byte[] retrieveDistributorImageSignature() throws IOException, NoSuchAlgorithmException- Throws:
IOException
NoSuchAlgorithmException
-
fromRaw512
- Throws:
NoSuchAlgorithmException
IOException
-
retrieveNamed
public static LicenseInfo retrieveNamed(String sig, String key, boolean doCheck) throws NoSuchAlgorithmException, InvalidKeySpecException, IOException -
retrieveDistributor
public static LicenseInfo retrieveDistributor(String key) throws IOException, NoSuchAlgorithmException - Throws:
IOException
NoSuchAlgorithmException
-
xor
public static void xor(byte[] buffer, byte[] key) -
getSalt
- Throws:
UnsupportedEncodingException
-
signature
- Throws:
IOException
-