aboutsummaryrefslogtreecommitdiffstats
path: root/lib/webrick/httpauth/digestauth.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/webrick/httpauth/digestauth.rb')
-rw-r--r--lib/webrick/httpauth/digestauth.rb24
1 files changed, 20 insertions, 4 deletions
diff --git a/lib/webrick/httpauth/digestauth.rb b/lib/webrick/httpauth/digestauth.rb
index 4e47fe163f..78ad45b233 100644
--- a/lib/webrick/httpauth/digestauth.rb
+++ b/lib/webrick/httpauth/digestauth.rb
@@ -45,9 +45,22 @@ module WEBrick
class DigestAuth
include Authenticator
- AuthScheme = "Digest"
- OpaqueInfo = Struct.new(:time, :nonce, :nc)
- attr_reader :algorithm, :qop
+ AuthScheme = "Digest" # :nodoc:
+
+ ##
+ # Struct containing the opaque portion of the digest authentication
+
+ OpaqueInfo = Struct.new(:time, :nonce, :nc) # :nodoc:
+
+ ##
+ # Digest authentication algorithm
+
+ attr_reader :algorithm
+
+ ##
+ # Quality of protection. RFC 2617 defines "auth" and "auth-int"
+
+ attr_reader :qop
##
# Used by UserDB to create a digest password entry
@@ -142,6 +155,8 @@ module WEBrick
private
+ # :stopdoc:
+
MustParams = ['username','realm','nonce','uri','response']
MustParamsAuth = ['cnonce','nc']
@@ -375,6 +390,7 @@ module WEBrick
@h.hexdigest(args.join(":"))
end
+ # :startdoc:
end
##
@@ -384,7 +400,7 @@ module WEBrick
include ProxyAuthenticator
private
- def check_uri(req, auth_req)
+ def check_uri(req, auth_req) # :nodoc:
return true
end
end