Tsukuyomi OpenID
0.2.0

jp.sourceforge.tsukuyomi.openid.rp
クラス AbstractNonceVerifier

java.lang.Object
  上位を拡張 jp.sourceforge.tsukuyomi.openid.rp.AbstractNonceVerifier
すべての実装されたインタフェース:
NonceVerifier
直系の既知のサブクラス:
InMemoryNonceVerifier

public abstract class AbstractNonceVerifier
extends Object
implements NonceVerifier

作成者:
Marius Scurtescu, Johnny Bufu

フィールドの概要
protected  int maxAge
           
 
インタフェース jp.sourceforge.tsukuyomi.openid.rp.NonceVerifier から継承されたフィールド
INVALID_TIMESTAMP, OK, SEEN, TOO_OLD
 
コンストラクタの概要
protected AbstractNonceVerifier(int maxAge)
           
 
メソッドの概要
 int getMaxAge()
          Returns the expiration timeout for nonces, in seconds
protected  boolean isTooOld(Date now, Date nonce)
           
protected abstract  int seen(Date now, String idpUrl, String nonce)
          Subclasses should implement this method and check if the nonce was seen before.
 int seen(String idpUrl, String nonce)
          Checks if nonce date is valid and if it is in the max age boudary.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

maxAge

protected int maxAge
コンストラクタの詳細

AbstractNonceVerifier

protected AbstractNonceVerifier(int maxAge)
パラメータ:
maxAge - maximum token age in seconds
メソッドの詳細

getMaxAge

public int getMaxAge()
インタフェース NonceVerifier の記述:
Returns the expiration timeout for nonces, in seconds

定義:
インタフェース NonceVerifier 内の getMaxAge

seen

public int seen(String idpUrl,
                String nonce)
Checks if nonce date is valid and if it is in the max age boudary. Other checks are delegated to seen(java.util.Date, String, String)

定義:
インタフェース NonceVerifier 内の seen
戻り値:
NonceVerifier.OK only if this nonce has a valid time stamp, the time stamp did not age and the nonce was not seen before.

seen

protected abstract int seen(Date now,
                            String idpUrl,
                            String nonce)
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.

パラメータ:
now - The timestamp used to check the max age boudary.

isTooOld

protected boolean isTooOld(Date now,
                           Date nonce)

Tsukuyomi OpenID
0.2.0

Copyright © 2008 Project Tsukuyomi. All Rights Reserved.