summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpauth/digestauth.rbs
diff options
context:
space:
mode:
authorBen Sanders <ben@sanders.life>2026-08-02 09:49:25 -0400
committerBen Sanders <ben@sanders.life>2026-08-02 09:49:25 -0400
commitb41479c91e6685511c1f8ba8586106b322073b62 (patch)
treec9f1345999d754ae0a533849966427e792d9e68d /vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpauth/digestauth.rbs
parentcfaceeb9a6d1295f5754be211858155cd309acc2 (diff)
added statscounter code
Diffstat (limited to 'vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpauth/digestauth.rbs')
-rw-r--r--vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpauth/digestauth.rbs85
1 files changed, 85 insertions, 0 deletions
diff --git a/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpauth/digestauth.rbs b/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpauth/digestauth.rbs
new file mode 100644
index 0000000..8d12f91
--- /dev/null
+++ b/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpauth/digestauth.rbs
@@ -0,0 +1,85 @@
+module WEBrick
+ module HTTPAuth
+ class DigestAuth
+ @config: Hash[Symbol, untyped]
+
+ @domain: Array[String]?
+
+ @use_opaque: bool
+
+ @use_next_nonce: bool
+
+ @check_nc: bool
+
+ @use_auth_info_header: bool
+
+ @nonce_expire_period: Integer
+
+ @nonce_expire_delta: Integer
+
+ @internet_explorer_hack: bool
+
+ @h: singleton(Digest::Base)
+
+ @instance_key: String
+
+ @opaques: Hash[String, OpaqueInfo]
+
+ @last_nonce_expire: Time
+
+ @mutex: Thread::Mutex
+
+ include Authenticator
+
+ AuthScheme: String
+
+ class OpaqueInfo < Struct[untyped]
+ attr_accessor time(): Time
+ attr_accessor nonce(): String?
+ attr_accessor nc(): String
+ end
+
+ attr_reader algorithm: String?
+
+ attr_reader qop: Array[String]
+
+ def self.make_passwd: (String realm, String user, String pass) -> untyped
+
+ def initialize: (Hash[Symbol, untyped] config, ?Hash[Symbol, untyped] default) -> void
+
+ def authenticate: (HTTPRequest req, HTTPResponse res) -> void
+
+ def challenge: (HTTPRequest req, HTTPResponse res, ?bool stale) -> bot
+
+ private
+
+ MustParams: Array[String]
+
+ MustParamsAuth: Array[String]
+
+ def _authenticate: (HTTPRequest req, HTTPResponse res) -> (:nonce_is_stale | bool)
+
+ def split_param_value: (String string) -> Hash[String, String]
+
+ def generate_next_nonce: (HTTPRequest req) -> String
+
+ def check_nonce: (HTTPRequest req, Hash[String, String] auth_req) -> bool
+
+ def generate_opaque: (HTTPRequest req) -> String
+
+ def check_opaque: (OpaqueInfo opaque_struct, untyped req, Hash[String, String] auth_req) -> bool
+
+ def check_uri: (HTTPRequest req, Hash[String, String] auth_req) -> bool
+
+ def hexdigest: (*_ToS? args) -> String
+ end
+
+ class ProxyDigestAuth < DigestAuth
+ include ProxyAuthenticator
+
+ private
+
+ def check_uri: (HTTPRequest req, Hash[String, String] auth_req) -> true
+ end
+ end
+end