public final class NonceManager extends Object
| Constructor and Description |
|---|
NonceManager(long maxAge,
int gcPeriod)
TODO: Description.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
verify(String key,
String timestamp,
String nonce)
Evaluates the timestamp/nonce combination for validity, storing and/or
clearing nonces as required.
|
public NonceManager(long maxAge,
int gcPeriod)
maxAge - the maximum valid age of a nonce timestamp, in milliseconds.gcPeriod - verifications to perform on average before performing garbage collection.public boolean verify(String key, String timestamp, String nonce)
key - the oauth_consumer_key value for a given consumer requesttimestamp - the oauth_timestamp value for a given consumer request.nonce - the oauth_nonce value for a given consumer request.Copyright © 2014 Oracle Corporation. All rights reserved.