Class PLSSignature


  • public class PLSSignature
    extends java.lang.Object
    • Constructor Detail

      • PLSSignature

        public PLSSignature​(int type,
                            byte[] sha,
                            long now,
                            long exp,
                            java.lang.String owner,
                            java.lang.String context)
    • 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