Class ProofKeyHelper

java.lang.Object
org.nuxeo.wopi.ProofKeyHelper

public class ProofKeyHelper extends Object
Proof key helper class.

See .

See

Since:
10.3
  • Field Details

  • Method Details

    • getPublicKey

      public static PublicKey getPublicKey(String modulus, String exponent)
    • 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