Package net.sourceforge.plantuml.version
Class PLSSignature
- java.lang.Object
-
- net.sourceforge.plantuml.version.PLSSignature
-
public class PLSSignature extends Object
-
-
Constructor Summary
Constructors Constructor Description PLSSignature(int type, byte[] sha, long now, long exp, String owner, String context)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PLSSignature
fromRaw512(byte[] data)
static byte[]
getSalt(String signature)
static LicenseInfo
retrieveDistributor(String key)
static byte[]
retrieveDistributorImageSignature()
static LicenseInfo
retrieveNamed(String sig, String key, boolean doCheck)
static byte[]
signature()
static void
xor(byte[] buffer, byte[] key)
-
-
-
Method Detail
-
retrieveDistributorImageSignature
public static byte[] retrieveDistributorImageSignature() throws IOException, NoSuchAlgorithmException
- Throws:
IOException
NoSuchAlgorithmException
-
fromRaw512
public static PLSSignature fromRaw512(byte[] data) throws NoSuchAlgorithmException, IOException
- 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
public static byte[] getSalt(String signature) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
signature
public static byte[] signature() throws IOException
- Throws:
IOException
-
-