summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.1/sig/httpauth/htdigest.rbs
blob: 19037e75ff61ddf4ad07a769d20c2e4278363724 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module WEBrick
  module HTTPAuth
    class Htdigest
      @path: String

      @mtime: Time

      @digest: Hash[String, Hash[String, String]]

      @mutex: Thread::Mutex

      @auth_type: String

      include UserDB

      def initialize: (String path) -> void

      def reload: () -> void

      def flush: (?String? output) -> void

      def get_passwd: (String realm, String user, bool reload_db) -> String?

      def set_passwd: (String realm, String user, String pass) -> String

      def delete_passwd: (String realm, String user) -> String?

      def each: () { (String user, String realm, String password_hash) -> void } -> void
    end
  end
end