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