Module: OpenID::Nonce

Module | OpenID::Nonce
In: | lib/openid/store/nonce.rb

### Methods

check_timestamp mk_nonce skew skew= split_nonce

### Constants

DEFAULT_SKEW | = | 60*60*5
TIME_FMT | = | '%Y-%m-%dT%H:%M:%SZ'
TIME_STR_LEN | = | '0000-00-00T00:00:00Z'.size
TIME_VALIDATOR | = | /\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ/

### Public Class methods

check_timestamp(nonce_str, allowed_skew=nil, now=nil)

Is the timestamp that is part of the specified nonce string within the allowed clock-skew of the current time?

mk_nonce(time = nil)

generate a nonce with the specified timestamp (defaults to now)

skew()

The allowed nonce time skew in seconds. Defaults to 5 hours. Used for checking nonce validity, and by stores’ cleanup methods.

skew=(new_skew)
split_nonce(nonce_str)

Extract timestamp from a nonce string

[Validate]