Class

Rack::Auth::Digest::Nonce

Inheritance
< Object

Rack::Auth::Digest::Nonce is the default nonce generator for the Rack::Auth::Digest::MD5 authentication handler.

private_key needs to set to a constant string.

time_limit can be optionally set to an integer (number of seconds), to limit the validity of the generated nonces.

Attributes

Name Visibility R/W Description
private_key public RW
time_limit public RW

Methods

Class

Visibility Signature
public new (timestamp = Time.now, given_digest = nil)
public parse (string)

Instance

Visibility Signature
public digest ()
public fresh? ()
public stale? ()
public to_s ()
public valid? ()

Class Method Detail

new(timestamp = Time.now, given_digest = nil)

parse(string)

Instance Method Detail

digest()

fresh?()

stale?()

to_s()

valid?()