org.openid4java.consumer
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, _maxAgeSeconds
INVALID_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, setMaxAge
private 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)
AbstractNonceVerifier
seen
in class AbstractNonceVerifier
now
- 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