Class ProofKeyHelper


  • public class ProofKeyHelper
    extends Object
    Proof key helper class.

    See .

    See

    Since:
    10.3
    • Method Detail

      • getExpectedProofBytes

        public static byte[] getExpectedProofBytes​(String url,
                                                   String accessToken,
                                                   long timestamp)
      • verifyProofKey

        public static boolean verifyProofKey​(PublicKey key,
                                             String proofKeyHeader,
                                             byte[] expectedProofBytes)
      • verifyTimestamp

        public static boolean verifyTimestamp​(long timestamp)
        Checks that the given timestamp is no more than 20 minutes old.
        Throws:
        NuxeoException - if the timestamp is older than 20 minutes