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.
(Not documented)
# File lib/rack/auth/digest/nonce.rb, line 32 32: def digest 33: ::Digest::MD5.hexdigest([ @timestamp, self.class.private_key ] * ':') 34: end
(Not documented)
# File lib/rack/auth/digest/nonce.rb, line 44 44: def fresh? 45: !stale? 46: end
(Not documented)
# File lib/rack/auth/digest/nonce.rb, line 40 40: def stale? 41: !self.class.time_limit.nil? && (@timestamp - Time.now.to_i) < self.class.time_limit 42: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.