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
メソッドの概要 |
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)
Copyright © 2008 Project Tsukuyomi. All Rights Reserved.