public class InMemoryNonceVerifier extends AbstractNonceVerifier
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.commons.logging.Log |
_log |
private java.util.Map |
_opMap |
private static boolean |
DEBUG |
_dateFormat, _maxAgeSecondsINVALID_TIMESTAMP, OK, SEEN, TOO_OLD| Constructor and Description |
|---|
InMemoryNonceVerifier() |
InMemoryNonceVerifier(int maxAge) |
| Modifier and Type | Method and Description |
|---|---|
private void |
removeAged(java.util.Date now) |
protected int |
seen(java.util.Date now,
java.lang.String opUrl,
java.lang.String nonce)
Subclasses should implement this method and check if the nonce was seen before.
|
protected int |
size() |
getMaxAge, isTooOld, seen, setMaxAgeprivate static org.apache.commons.logging.Log _log
private static final boolean DEBUG
private java.util.Map _opMap
public InMemoryNonceVerifier()
public InMemoryNonceVerifier(int maxAge)
protected int seen(java.util.Date now,
java.lang.String opUrl,
java.lang.String nonce)
AbstractNonceVerifierseen in class AbstractNonceVerifiernow - The timestamp used to check the max age boudary.private void removeAged(java.util.Date now)
protected int size()
Copyright 2006-2008 Sxip Identity Corporation