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

    Modifier and Type
    Method
    Description
    fromRaw512(byte[] data)
     
    static byte[]
    getSalt(java.lang.String signature)
     
    retrieveDistributor(java.lang.String key)
     
    static byte[]
     
    retrieveNamed(java.lang.String sig, java.lang.String key, boolean doCheck)
     
    static byte[]
     
    static void
    xor(byte[] buffer, byte[] key)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PLSSignature

      public PLSSignature(int type, byte[] sha, long now, long exp, java.lang.String owner, java.lang.String context)
  • Method Details

    • 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