public class ProofKeyHelper extends Object
| Modifier and Type | Field and Description | 
|---|---|
static long | 
EPOCH_IN_TICKS  | 
static String | 
KEY_FACTORY_ALGORITHM  | 
static String | 
SIGNATURE_ALGORITHM  | 
| Modifier and Type | Method and Description | 
|---|---|
static byte[] | 
getExpectedProofBytes(String url,
                     String accessToken,
                     long timestamp)  | 
static PublicKey | 
getPublicKey(String modulus,
            String exponent)  | 
static boolean | 
verifyProofKey(PublicKey key,
              String proofKeyHeader,
              byte[] expectedProofBytes)  | 
static boolean | 
verifyTimestamp(long timestamp)
Checks that the given  
timestamp is no more than 20 minutes old. | 
public static final String KEY_FACTORY_ALGORITHM
public static final String SIGNATURE_ALGORITHM
public static final long EPOCH_IN_TICKS
public static PublicKey getPublicKey(String modulus, String exponent)
public static byte[] getExpectedProofBytes(String url, String accessToken, long timestamp)
public static boolean verifyProofKey(PublicKey key, String proofKeyHeader, byte[] expectedProofBytes)
public static boolean verifyTimestamp(long timestamp)
timestamp is no more than 20 minutes old.NuxeoException - if the timestamp is older than 20 minutesCopyright © 2019 Nuxeo. All rights reserved.