org.openid4java.consumer
Class InMemoryNonceVerifier
java.lang.Object
org.openid4java.consumer.AbstractNonceVerifier
org.openid4java.consumer.InMemoryNonceVerifier
- All Implemented Interfaces:
- NonceVerifier
public class InMemoryNonceVerifier
- extends AbstractNonceVerifier
- Author:
- Marius Scurtescu, Johnny Bufu
Field Summary |
private static org.apache.commons.logging.Log |
_log
|
private java.util.Map |
_opMap
|
private static boolean |
DEBUG
|
Method Summary |
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()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_log
private static org.apache.commons.logging.Log _log
DEBUG
private static final boolean DEBUG
_opMap
private java.util.Map _opMap
InMemoryNonceVerifier
public InMemoryNonceVerifier()
InMemoryNonceVerifier
public InMemoryNonceVerifier(int maxAge)
seen
protected int seen(java.util.Date now,
java.lang.String opUrl,
java.lang.String nonce)
- Description copied from class:
AbstractNonceVerifier
- Subclasses should implement this method and check if the nonce was seen before.
The nonce timestamp was verified at this point, it is valid and it is in the max age boudary.
- Specified by:
seen
in class AbstractNonceVerifier
- Parameters:
now
- The timestamp used to check the max age boudary.
removeAged
private void removeAged(java.util.Date now)
size
protected int size()
Copyright 2006-2008 Sxip Identity Corporation