File: htpasswd.rbs

package info (click to toggle)
ruby-webrick 1.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 756 kB
  • sloc: ruby: 7,781; sh: 4; makefile: 4
file content (31 lines) | stat: -rw-r--r-- 666 bytes parent folder | download | duplicates (2)
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 Htpasswd
      @path: String

      @mtime: Time

      @passwd: Hash[String, String]

      @auth_type: String

      @password_hash: (:crypt | :bcrypt)

      include UserDB

      def initialize: (String path, ?password_hash: (:crypt | :bcrypt)?) -> 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) -> void

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

      def each: () { ([String, String]) -> void } -> void
    end
  end
end