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 PLSSignaturefromRaw512(byte[] data) static byte[]static LicenseInfostatic byte[]static LicenseInforetrieveNamed(String sig, String key, boolean doCheck) static byte[]static voidxor(byte[] buffer, byte[] key)
-
Constructor Details
-
PLSSignature
-
-
Method Details
-
retrieveDistributorImageSignature
public static byte[] retrieveDistributorImageSignature() throws IOException, NoSuchAlgorithmException- Throws:
IOExceptionNoSuchAlgorithmException
-
fromRaw512
- Throws:
NoSuchAlgorithmExceptionIOException
-
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:
IOExceptionNoSuchAlgorithmException
-
xor
public static void xor(byte[] buffer, byte[] key) -
getSalt
- Throws:
UnsupportedEncodingException
-
signature
- Throws:
IOException
-