org.openid4java.consumer
Class InMemoryNonceVerifier

java.lang.Object
  extended by org.openid4java.consumer.AbstractNonceVerifier
      extended by org.openid4java.consumer.InMemoryNonceVerifier
All Implemented Interfaces:
NonceVerifier

public class InMemoryNonceVerifier
extends AbstractNonceVerifier

Author:
Marius Scurtescu, Johnny Bufu

Field Summary
 
Fields inherited from class org.openid4java.consumer.AbstractNonceVerifier
_dateFormat, _maxAgeSeconds
 
Fields inherited from interface org.openid4java.consumer.NonceVerifier
INVALID_TIMESTAMP, OK, SEEN, TOO_OLD
 
Constructor Summary
InMemoryNonceVerifier()
           
InMemoryNonceVerifier(int maxAge)
           
 
Method Summary
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 org.openid4java.consumer.AbstractNonceVerifier
getMaxAge, isTooOld, seen, setMaxAge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryNonceVerifier

public InMemoryNonceVerifier()

InMemoryNonceVerifier

public InMemoryNonceVerifier(int maxAge)
Method Detail

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.

size

protected int size()


Copyright © 2012 Sxip. All Rights Reserved.