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



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

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

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

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

Extract timestamp from a nonce string