public class PLSSignature
extends java.lang.Object
Constructor and Description |
---|
PLSSignature(int type,
byte[] sha,
long now,
long exp,
java.lang.String owner,
java.lang.String context) |
Modifier and Type | Method and 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) |
public PLSSignature(int type, byte[] sha, long now, long exp, java.lang.String owner, java.lang.String context)
public static byte[] retrieveDistributorImageSignature() throws java.io.IOException, java.security.NoSuchAlgorithmException
java.io.IOException
java.security.NoSuchAlgorithmException
public static PLSSignature fromRaw512(byte[] data) throws java.security.NoSuchAlgorithmException, java.io.IOException
java.security.NoSuchAlgorithmException
java.io.IOException
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
java.security.NoSuchAlgorithmException
java.security.spec.InvalidKeySpecException
java.io.IOException
public static LicenseInfo retrieveDistributor(java.lang.String key) throws java.io.IOException, java.security.NoSuchAlgorithmException
java.io.IOException
java.security.NoSuchAlgorithmException
public static void xor(byte[] buffer, byte[] key)
public static byte[] getSalt(java.lang.String signature) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public static byte[] signature() throws java.io.IOException
java.io.IOException