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 PLSSignaturefromRaw512(byte[] data)static byte[]getSalt(java.lang.String signature)static LicenseInforetrieveDistributor(java.lang.String key)static byte[]retrieveDistributorImageSignature()static LicenseInforetrieveNamed(java.lang.String sig, java.lang.String key, boolean doCheck)static byte[]signature()static voidxor(byte[] buffer, byte[] key)
-
-
-
Method Detail
-
retrieveDistributorImageSignature
public static byte[] retrieveDistributorImageSignature() throws java.io.IOException, java.security.NoSuchAlgorithmException- Throws:
java.io.IOExceptionjava.security.NoSuchAlgorithmException
-
fromRaw512
public static PLSSignature fromRaw512(byte[] data) throws java.security.NoSuchAlgorithmException, java.io.IOException
- Throws:
java.security.NoSuchAlgorithmExceptionjava.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.NoSuchAlgorithmExceptionjava.security.spec.InvalidKeySpecExceptionjava.io.IOException
-
retrieveDistributor
public static LicenseInfo retrieveDistributor(java.lang.String key) throws java.io.IOException, java.security.NoSuchAlgorithmException
- Throws:
java.io.IOExceptionjava.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
-
-