|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NonceVerifier
Field Summary | |
---|---|
static int |
INVALID_TIMESTAMP
The timestamp of the nonce is invalid, it cannot be parsed. |
static int |
OK
This noce is valid and it was not seen before. |
static int |
SEEN
The nonce was seen before. |
static int |
TOO_OLD
The timestamp of the nonce is too old and it is not tracked anymore. |
Method Summary | |
---|---|
int |
getMaxAge()
Returns the expiration timeout for nonces, in seconds. |
int |
seen(java.lang.String opUrl,
java.lang.String nonce)
Checks if a nonce was seen before. |
void |
setMaxAge(int ageSeconds)
Sets the expiration timeout for nonces, in seconds. |
Field Detail |
---|
static final int OK
static final int SEEN
static final int INVALID_TIMESTAMP
static final int TOO_OLD
Method Detail |
---|
int seen(java.lang.String opUrl, java.lang.String nonce)
OK
only if this nonce has a valid time stamp, the time stamp did not age and the nonce was not
seen before.int getMaxAge()
void setMaxAge(int ageSeconds)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |