Tsukuyomi OpenID
0.2.0

jp.sourceforge.tsukuyomi.openid.rp
インタフェース NonceVerifier

既知の実装クラスの一覧:
AbstractNonceVerifier, InMemoryNonceVerifier

public interface NonceVerifier

作成者:
Marius Scurtescu, Johnny Bufu

フィールドの概要
static int INVALID_TIMESTAMP
          The timestamp of the nonce is invalid, it cannot be parsed.
static int OK
          This noce is valid and it was not seen before.
static int SEEN
          The nonce was seen before.
static int TOO_OLD
          The timestamp of the nonce is too old and it is not tracked anymore.
 
メソッドの概要
 int getMaxAge()
          Returns the expiration timeout for nonces, in seconds
 int seen(String idpUrl, String nonce)
          Checks if a nonce was seen before.
 

フィールドの詳細

OK

static final int OK
This noce is valid and it was not seen before. Nonce should be accepted.

関連項目:
定数フィールド値

SEEN

static final int SEEN
The nonce was seen before. Nonce should be rejected.

関連項目:
定数フィールド値

INVALID_TIMESTAMP

static final int INVALID_TIMESTAMP
The timestamp of the nonce is invalid, it cannot be parsed. Nonce should be rejected.

関連項目:
定数フィールド値

TOO_OLD

static final int TOO_OLD
The timestamp of the nonce is too old and it is not tracked anymore. Nonce should be rejected.

関連項目:
定数フィールド値
メソッドの詳細

seen

int seen(String idpUrl,
         String nonce)
Checks if a nonce was seen before. It also checks if the time stamp at the beginning of the noce is valid. Also, if old nonces are discarded the it should check if the time stamp for this noce is still valid.

戻り値:
OK only if this nonce has a valid time stamp, the time stamp did not age and the nonce was not seen before.

getMaxAge

int getMaxAge()
Returns the expiration timeout for nonces, in seconds


Tsukuyomi OpenID
0.2.0

Copyright © 2008 Project Tsukuyomi. All Rights Reserved.