checkoff 0.200.0 → 0.203.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +130 -28
- data/.git-hooks/pre_commit/solargraph_typecheck.rb +12 -11
- data/.overcommit.yml +27 -2
- data/.rubocop.yml +20 -2
- data/.rubocop_todo.yml +90 -0
- data/.solargraph.yml +10 -1
- data/DEVELOPMENT.md +1 -1
- data/Gemfile +11 -8
- data/Gemfile.lock +66 -42
- data/LICENSE +1 -1
- data/Makefile +14 -12
- data/bin/brakeman +27 -0
- data/bin/overcommit_branch +117 -0
- data/bin/spoom +27 -0
- data/bin/srb +27 -0
- data/bin/srb-rbi +27 -0
- data/bin/tapioca +27 -0
- data/config/annotations_misc.rb +35 -0
- data/docs/cookiecutter_input.json +1 -0
- data/fix.sh +14 -6
- data/lib/checkoff/custom_fields.rb +3 -2
- data/lib/checkoff/internal/search_url/simple_param_converter.rb +11 -0
- data/lib/checkoff/version.rb +1 -1
- data/requirements_dev.txt +1 -1
- data/sorbet/config +4 -0
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/annotations/activesupport.rbi +453 -0
- data/sorbet/rbi/annotations/faraday.rbi +17 -0
- data/sorbet/rbi/annotations/minitest.rbi +119 -0
- data/sorbet/rbi/annotations/mocha.rbi +34 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/annotations/webmock.rbi +9 -0
- data/sorbet/rbi/dsl/.gitattributes +1 -0
- data/sorbet/rbi/dsl/active_support/callbacks.rbi +23 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/activesupport@7.1.3.rbi +18749 -0
- data/sorbet/rbi/gems/addressable@2.8.6.rbi +1994 -0
- data/sorbet/rbi/gems/ansi@1.5.0.rbi +688 -0
- data/sorbet/rbi/gems/asana@0.10.6-ab9393136d9ca59b75e42a661fdddc1c65c8f7c3.rbi +6142 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
- data/sorbet/rbi/gems/backport@1.2.0.rbi +523 -0
- data/sorbet/rbi/gems/base64@0.2.0.rbi +509 -0
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
- data/sorbet/rbi/gems/bigdecimal@3.1.5.rbi +78 -0
- data/sorbet/rbi/gems/builder@3.2.4.rbi +505 -0
- data/sorbet/rbi/gems/bump@0.10.0.rbi +169 -0
- data/sorbet/rbi/gems/cache@0.4.1.rbi +211 -0
- data/sorbet/rbi/gems/cache_method@0.2.7.rbi +293 -0
- data/sorbet/rbi/gems/chef-utils@18.3.0.rbi +9 -0
- data/sorbet/rbi/gems/childprocess@5.1.0.rbi +383 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +3427 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +11591 -0
- data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +9 -0
- data/sorbet/rbi/gems/crack@0.4.5.rbi +145 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +969 -0
- data/sorbet/rbi/gems/docile@1.4.0.rbi +377 -0
- data/sorbet/rbi/gems/drb@2.2.0.rbi +1347 -0
- data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +9 -0
- data/sorbet/rbi/gems/erubi@1.13.0.rbi +152 -0
- data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +222 -0
- data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +126 -0
- data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +136 -0
- data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +145 -0
- data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +259 -0
- data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +142 -0
- data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +118 -0
- data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +125 -0
- data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +133 -0
- data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +198 -0
- data/sorbet/rbi/gems/faraday@1.10.3.rbi +2729 -0
- data/sorbet/rbi/gems/faraday_middleware-multi_json@0.0.6.rbi +29 -0
- data/sorbet/rbi/gems/faraday_middleware@1.2.0.rbi +1004 -0
- data/sorbet/rbi/gems/gli@2.21.1.rbi +9 -0
- data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +351 -0
- data/sorbet/rbi/gems/i18n@1.14.1.rbi +2326 -0
- data/sorbet/rbi/gems/imagen@0.1.8.rbi +340 -0
- data/sorbet/rbi/gems/iniparse@1.5.0.rbi +899 -0
- data/sorbet/rbi/gems/jaro_winkler@1.6.0.rbi +22 -0
- data/sorbet/rbi/gems/json@2.7.1.rbi +1562 -0
- data/sorbet/rbi/gems/jwt@2.7.1.rbi +1405 -0
- data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +128 -0
- data/sorbet/rbi/gems/kramdown@2.4.0.rbi +3272 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
- data/sorbet/rbi/gems/logger@1.6.1.rbi +920 -0
- data/sorbet/rbi/gems/mdl@0.13.0.rbi +445 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +273 -0
- data/sorbet/rbi/gems/mime-types-data@3.2023.1205.rbi +127 -0
- data/sorbet/rbi/gems/mime-types@3.5.1.rbi +1252 -0
- data/sorbet/rbi/gems/minitest-profile@0.0.2.rbi +136 -0
- data/sorbet/rbi/gems/minitest-reporters@1.6.1.rbi +1014 -0
- data/sorbet/rbi/gems/minitest@5.21.1.rbi +1539 -0
- data/sorbet/rbi/gems/mixlib-cli@2.1.8.rbi +314 -0
- data/sorbet/rbi/gems/mixlib-config@3.0.27.rbi +581 -0
- data/sorbet/rbi/gems/mixlib-shellout@3.2.7.rbi +629 -0
- data/sorbet/rbi/gems/mocha@2.1.0.rbi +12 -0
- data/sorbet/rbi/gems/multi_json@1.15.0.rbi +268 -0
- data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +102 -0
- data/sorbet/rbi/gems/multipart-post@2.3.0.rbi +234 -0
- data/sorbet/rbi/gems/mutex_m@0.2.0.rbi +94 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
- data/sorbet/rbi/gems/nokogiri@1.16.7.rbi +7311 -0
- data/sorbet/rbi/gems/oauth2@1.4.11.rbi +833 -0
- data/sorbet/rbi/gems/ostruct@0.6.1.rbi +354 -0
- data/sorbet/rbi/gems/overcommit@0.64.0.rbi +2400 -0
- data/sorbet/rbi/gems/parallel@1.23.0.rbi +274 -0
- data/sorbet/rbi/gems/parser@3.2.2.4.rbi +7253 -0
- data/sorbet/rbi/gems/prism@1.2.0.rbi +39085 -0
- data/sorbet/rbi/gems/pry@0.14.2.rbi +10070 -0
- data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +936 -0
- data/sorbet/rbi/gems/punchlist@1.3.2.rbi +173 -0
- data/sorbet/rbi/gems/racc@1.7.3.rbi +162 -0
- data/sorbet/rbi/gems/rack@3.0.8.rbi +5184 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
- data/sorbet/rbi/gems/rake@13.1.0.rbi +3022 -0
- data/sorbet/rbi/gems/rbi@0.2.1.rbi +4535 -0
- data/sorbet/rbi/gems/rbs@2.8.4.rbi +5613 -0
- data/sorbet/rbi/gems/regexp_parser@2.8.3.rbi +3750 -0
- data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +390 -0
- data/sorbet/rbi/gems/rexml@3.2.6.rbi +4888 -0
- data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7061 -0
- data/sorbet/rbi/gems/rubocop-minitest@0.34.5.rbi +2577 -0
- data/sorbet/rbi/gems/rubocop-performance@1.20.2.rbi +3262 -0
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +329 -0
- data/sorbet/rbi/gems/rubocop@1.59.0.rbi +57238 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +9 -0
- data/sorbet/rbi/gems/rugged@1.6.3.rbi +1577 -0
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +217 -0
- data/sorbet/rbi/gems/simplecov-lcov@0.8.0.rbi +256 -0
- data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2149 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +9 -0
- data/sorbet/rbi/gems/solargraph@0.50.1-904b9304770a59fac393c5cc3cad481e5bdf0fd8.rbi +9396 -0
- data/sorbet/rbi/gems/source_finder@3.2.1.rbi +317 -0
- data/sorbet/rbi/gems/spoom@1.5.0.rbi +4932 -0
- data/sorbet/rbi/gems/tapioca@0.16.4.rbi +3604 -0
- data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
- data/sorbet/rbi/gems/tilt@2.4.0.rbi +933 -0
- data/sorbet/rbi/gems/tomlrb@2.0.3.rbi +9 -0
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5918 -0
- data/sorbet/rbi/gems/undercover@0.5.0.rbi +433 -0
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +66 -0
- data/sorbet/rbi/gems/webmock@3.19.1.rbi +1769 -0
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
- data/sorbet/rbi/gems/yard@0.9.34.rbi +18247 -0
- data/sorbet/rbi/todo.rbi +11 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +134 -3
@@ -0,0 +1,1405 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `jwt` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem jwt`.
|
6
|
+
|
7
|
+
|
8
|
+
# JSON Web Token implementation
|
9
|
+
#
|
10
|
+
# Should be up to date with the latest spec:
|
11
|
+
# https://tools.ietf.org/html/rfc7519
|
12
|
+
#
|
13
|
+
# source://jwt//lib/jwt/version.rb#4
|
14
|
+
module JWT
|
15
|
+
extend ::JWT::Configuration
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
# source://jwt//lib/jwt.rb#28
|
20
|
+
def decode(jwt, key = T.unsafe(nil), verify = T.unsafe(nil), options = T.unsafe(nil), &keyfinder); end
|
21
|
+
|
22
|
+
# source://jwt//lib/jwt.rb#21
|
23
|
+
def encode(payload, key, algorithm = T.unsafe(nil), header_fields = T.unsafe(nil)); end
|
24
|
+
|
25
|
+
class << self
|
26
|
+
# source://jwt//lib/jwt.rb#28
|
27
|
+
def decode(jwt, key = T.unsafe(nil), verify = T.unsafe(nil), options = T.unsafe(nil), &keyfinder); end
|
28
|
+
|
29
|
+
# source://jwt//lib/jwt.rb#21
|
30
|
+
def encode(payload, key, algorithm = T.unsafe(nil), header_fields = T.unsafe(nil)); end
|
31
|
+
|
32
|
+
# source://jwt//lib/jwt/version.rb#5
|
33
|
+
def gem_version; end
|
34
|
+
|
35
|
+
# @return [Boolean]
|
36
|
+
#
|
37
|
+
# source://jwt//lib/jwt/version.rb#24
|
38
|
+
def openssl_3?; end
|
39
|
+
|
40
|
+
# @return [Boolean]
|
41
|
+
#
|
42
|
+
# source://jwt//lib/jwt/version.rb#37
|
43
|
+
def openssl_3_hmac_empty_key_regression?; end
|
44
|
+
|
45
|
+
# source://jwt//lib/jwt/version.rb#41
|
46
|
+
def openssl_version; end
|
47
|
+
|
48
|
+
# @return [Boolean]
|
49
|
+
#
|
50
|
+
# source://jwt//lib/jwt/version.rb#29
|
51
|
+
def rbnacl?; end
|
52
|
+
|
53
|
+
# @return [Boolean]
|
54
|
+
#
|
55
|
+
# source://jwt//lib/jwt/version.rb#33
|
56
|
+
def rbnacl_6_or_greater?; end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# source://jwt//lib/jwt/algos/hmac.rb#4
|
61
|
+
module JWT::Algos
|
62
|
+
extend ::JWT::Algos
|
63
|
+
|
64
|
+
# source://jwt//lib/jwt/algos.rb#44
|
65
|
+
def create(algorithm); end
|
66
|
+
|
67
|
+
# source://jwt//lib/jwt/algos.rb#40
|
68
|
+
def find(algorithm); end
|
69
|
+
|
70
|
+
# @return [Boolean]
|
71
|
+
#
|
72
|
+
# source://jwt//lib/jwt/algos.rb#48
|
73
|
+
def implementation?(algorithm); end
|
74
|
+
|
75
|
+
private
|
76
|
+
|
77
|
+
# source://jwt//lib/jwt/algos.rb#55
|
78
|
+
def indexed; end
|
79
|
+
end
|
80
|
+
|
81
|
+
# source://jwt//lib/jwt/algos.rb#23
|
82
|
+
JWT::Algos::ALGOS = T.let(T.unsafe(nil), Array)
|
83
|
+
|
84
|
+
# source://jwt//lib/jwt/algos/algo_wrapper.rb#5
|
85
|
+
class JWT::Algos::AlgoWrapper
|
86
|
+
# @return [AlgoWrapper] a new instance of AlgoWrapper
|
87
|
+
#
|
88
|
+
# source://jwt//lib/jwt/algos/algo_wrapper.rb#8
|
89
|
+
def initialize(alg, cls); end
|
90
|
+
|
91
|
+
# Returns the value of attribute alg.
|
92
|
+
#
|
93
|
+
# source://jwt//lib/jwt/algos/algo_wrapper.rb#6
|
94
|
+
def alg; end
|
95
|
+
|
96
|
+
# Returns the value of attribute cls.
|
97
|
+
#
|
98
|
+
# source://jwt//lib/jwt/algos/algo_wrapper.rb#6
|
99
|
+
def cls; end
|
100
|
+
|
101
|
+
# source://jwt//lib/jwt/algos/algo_wrapper.rb#17
|
102
|
+
def sign(data:, signing_key:); end
|
103
|
+
|
104
|
+
# @return [Boolean]
|
105
|
+
#
|
106
|
+
# source://jwt//lib/jwt/algos/algo_wrapper.rb#13
|
107
|
+
def valid_alg?(alg_to_check); end
|
108
|
+
|
109
|
+
# source://jwt//lib/jwt/algos/algo_wrapper.rb#21
|
110
|
+
def verify(data:, signature:, verification_key:); end
|
111
|
+
end
|
112
|
+
|
113
|
+
# source://jwt//lib/jwt/algos/ecdsa.rb#5
|
114
|
+
module JWT::Algos::Ecdsa
|
115
|
+
private
|
116
|
+
|
117
|
+
# source://jwt//lib/jwt/algos/ecdsa.rb#70
|
118
|
+
def asn1_to_raw(signature, public_key); end
|
119
|
+
|
120
|
+
# source://jwt//lib/jwt/algos/ecdsa.rb#57
|
121
|
+
def curve_by_name(name); end
|
122
|
+
|
123
|
+
# source://jwt//lib/jwt/algos/ecdsa.rb#63
|
124
|
+
def raw_to_asn1(signature, private_key); end
|
125
|
+
|
126
|
+
# source://jwt//lib/jwt/algos/ecdsa.rb#33
|
127
|
+
def sign(algorithm, msg, key); end
|
128
|
+
|
129
|
+
# source://jwt//lib/jwt/algos/ecdsa.rb#44
|
130
|
+
def verify(algorithm, public_key, signing_input, signature); end
|
131
|
+
|
132
|
+
class << self
|
133
|
+
# source://jwt//lib/jwt/algos/ecdsa.rb#70
|
134
|
+
def asn1_to_raw(signature, public_key); end
|
135
|
+
|
136
|
+
# source://jwt//lib/jwt/algos/ecdsa.rb#57
|
137
|
+
def curve_by_name(name); end
|
138
|
+
|
139
|
+
# source://jwt//lib/jwt/algos/ecdsa.rb#63
|
140
|
+
def raw_to_asn1(signature, private_key); end
|
141
|
+
|
142
|
+
# source://jwt//lib/jwt/algos/ecdsa.rb#33
|
143
|
+
def sign(algorithm, msg, key); end
|
144
|
+
|
145
|
+
# source://jwt//lib/jwt/algos/ecdsa.rb#44
|
146
|
+
def verify(algorithm, public_key, signing_input, signature); end
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
# source://jwt//lib/jwt/algos/ecdsa.rb#8
|
151
|
+
JWT::Algos::Ecdsa::NAMED_CURVES = T.let(T.unsafe(nil), Hash)
|
152
|
+
|
153
|
+
# source://jwt//lib/jwt/algos/ecdsa.rb#31
|
154
|
+
JWT::Algos::Ecdsa::SUPPORTED = T.let(T.unsafe(nil), Array)
|
155
|
+
|
156
|
+
# source://jwt//lib/jwt/algos/eddsa.rb#5
|
157
|
+
module JWT::Algos::Eddsa
|
158
|
+
private
|
159
|
+
|
160
|
+
# source://jwt//lib/jwt/algos/eddsa.rb#10
|
161
|
+
def sign(algorithm, msg, key); end
|
162
|
+
|
163
|
+
# source://jwt//lib/jwt/algos/eddsa.rb#21
|
164
|
+
def verify(algorithm, public_key, signing_input, signature); end
|
165
|
+
|
166
|
+
class << self
|
167
|
+
# source://jwt//lib/jwt/algos/eddsa.rb#10
|
168
|
+
def sign(algorithm, msg, key); end
|
169
|
+
|
170
|
+
# source://jwt//lib/jwt/algos/eddsa.rb#21
|
171
|
+
def verify(algorithm, public_key, signing_input, signature); end
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
# source://jwt//lib/jwt/algos/eddsa.rb#8
|
176
|
+
JWT::Algos::Eddsa::SUPPORTED = T.let(T.unsafe(nil), Array)
|
177
|
+
|
178
|
+
# source://jwt//lib/jwt/algos/hmac.rb#5
|
179
|
+
module JWT::Algos::Hmac
|
180
|
+
private
|
181
|
+
|
182
|
+
# source://jwt//lib/jwt/algos/hmac.rb#16
|
183
|
+
def sign(algorithm, msg, key); end
|
184
|
+
|
185
|
+
# source://jwt//lib/jwt/algos/hmac.rb#30
|
186
|
+
def verify(algorithm, key, signing_input, signature); end
|
187
|
+
|
188
|
+
class << self
|
189
|
+
# source://jwt//lib/jwt/algos/hmac.rb#16
|
190
|
+
def sign(algorithm, msg, key); end
|
191
|
+
|
192
|
+
# source://jwt//lib/jwt/algos/hmac.rb#30
|
193
|
+
def verify(algorithm, key, signing_input, signature); end
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
# source://jwt//lib/jwt/algos/hmac.rb#8
|
198
|
+
JWT::Algos::Hmac::MAPPING = T.let(T.unsafe(nil), Hash)
|
199
|
+
|
200
|
+
# source://jwt//lib/jwt/algos/hmac.rb#14
|
201
|
+
JWT::Algos::Hmac::SUPPORTED = T.let(T.unsafe(nil), Array)
|
202
|
+
|
203
|
+
# Copy of https://github.com/rails/rails/blob/v7.0.3.1/activesupport/lib/active_support/security_utils.rb
|
204
|
+
#
|
205
|
+
# source://jwt//lib/jwt/algos/hmac.rb#36
|
206
|
+
module JWT::Algos::Hmac::SecurityUtils
|
207
|
+
private
|
208
|
+
|
209
|
+
# @raise [ArgumentError]
|
210
|
+
#
|
211
|
+
# source://jwt//lib/jwt/algos/hmac.rb#43
|
212
|
+
def fixed_length_secure_compare(a, b); end
|
213
|
+
|
214
|
+
# Secure string comparison for strings of variable length.
|
215
|
+
#
|
216
|
+
# While a timing attack would not be able to discern the content of
|
217
|
+
# a secret compared via secure_compare, it is possible to determine
|
218
|
+
# the secret length. This should be considered when using secure_compare
|
219
|
+
# to compare weak, short secrets to user input.
|
220
|
+
#
|
221
|
+
# source://jwt//lib/jwt/algos/hmac.rb#65
|
222
|
+
def secure_compare(a, b); end
|
223
|
+
|
224
|
+
class << self
|
225
|
+
# @raise [ArgumentError]
|
226
|
+
#
|
227
|
+
# source://jwt//lib/jwt/algos/hmac.rb#43
|
228
|
+
def fixed_length_secure_compare(a, b); end
|
229
|
+
|
230
|
+
# Secure string comparison for strings of variable length.
|
231
|
+
#
|
232
|
+
# While a timing attack would not be able to discern the content of
|
233
|
+
# a secret compared via secure_compare, it is possible to determine
|
234
|
+
# the secret length. This should be considered when using secure_compare
|
235
|
+
# to compare weak, short secrets to user input.
|
236
|
+
#
|
237
|
+
# source://jwt//lib/jwt/algos/hmac.rb#65
|
238
|
+
def secure_compare(a, b); end
|
239
|
+
end
|
240
|
+
end
|
241
|
+
|
242
|
+
# source://jwt//lib/jwt/algos/none.rb#5
|
243
|
+
module JWT::Algos::None
|
244
|
+
private
|
245
|
+
|
246
|
+
# source://jwt//lib/jwt/algos/none.rb#10
|
247
|
+
def sign(*_arg0); end
|
248
|
+
|
249
|
+
# source://jwt//lib/jwt/algos/none.rb#14
|
250
|
+
def verify(*_arg0); end
|
251
|
+
|
252
|
+
class << self
|
253
|
+
# source://jwt//lib/jwt/algos/none.rb#10
|
254
|
+
def sign(*_arg0); end
|
255
|
+
|
256
|
+
# source://jwt//lib/jwt/algos/none.rb#14
|
257
|
+
def verify(*_arg0); end
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
# source://jwt//lib/jwt/algos/none.rb#8
|
262
|
+
JWT::Algos::None::SUPPORTED = T.let(T.unsafe(nil), Array)
|
263
|
+
|
264
|
+
# source://jwt//lib/jwt/algos/ps.rb#5
|
265
|
+
module JWT::Algos::Ps
|
266
|
+
private
|
267
|
+
|
268
|
+
# source://jwt//lib/jwt/algos/ps.rb#30
|
269
|
+
def require_openssl!; end
|
270
|
+
|
271
|
+
# source://jwt//lib/jwt/algos/ps.rb#12
|
272
|
+
def sign(algorithm, msg, key); end
|
273
|
+
|
274
|
+
# source://jwt//lib/jwt/algos/ps.rb#22
|
275
|
+
def verify(algorithm, public_key, signing_input, signature); end
|
276
|
+
|
277
|
+
class << self
|
278
|
+
# source://jwt//lib/jwt/algos/ps.rb#30
|
279
|
+
def require_openssl!; end
|
280
|
+
|
281
|
+
# @raise [EncodeError]
|
282
|
+
#
|
283
|
+
# source://jwt//lib/jwt/algos/ps.rb#12
|
284
|
+
def sign(algorithm, msg, key); end
|
285
|
+
|
286
|
+
# source://jwt//lib/jwt/algos/ps.rb#22
|
287
|
+
def verify(algorithm, public_key, signing_input, signature); end
|
288
|
+
end
|
289
|
+
end
|
290
|
+
|
291
|
+
# source://jwt//lib/jwt/algos/ps.rb#10
|
292
|
+
JWT::Algos::Ps::SUPPORTED = T.let(T.unsafe(nil), Array)
|
293
|
+
|
294
|
+
# source://jwt//lib/jwt/algos/rsa.rb#5
|
295
|
+
module JWT::Algos::Rsa
|
296
|
+
private
|
297
|
+
|
298
|
+
# source://jwt//lib/jwt/algos/rsa.rb#10
|
299
|
+
def sign(algorithm, msg, key); end
|
300
|
+
|
301
|
+
# source://jwt//lib/jwt/algos/rsa.rb#16
|
302
|
+
def verify(algorithm, public_key, signing_input, signature); end
|
303
|
+
|
304
|
+
class << self
|
305
|
+
# @raise [EncodeError]
|
306
|
+
#
|
307
|
+
# source://jwt//lib/jwt/algos/rsa.rb#10
|
308
|
+
def sign(algorithm, msg, key); end
|
309
|
+
|
310
|
+
# source://jwt//lib/jwt/algos/rsa.rb#16
|
311
|
+
def verify(algorithm, public_key, signing_input, signature); end
|
312
|
+
end
|
313
|
+
end
|
314
|
+
|
315
|
+
# source://jwt//lib/jwt/algos/rsa.rb#8
|
316
|
+
JWT::Algos::Rsa::SUPPORTED = T.let(T.unsafe(nil), Array)
|
317
|
+
|
318
|
+
# source://jwt//lib/jwt/algos/unsupported.rb#5
|
319
|
+
module JWT::Algos::Unsupported
|
320
|
+
private
|
321
|
+
|
322
|
+
# source://jwt//lib/jwt/algos/unsupported.rb#10
|
323
|
+
def sign(*_arg0); end
|
324
|
+
|
325
|
+
# source://jwt//lib/jwt/algos/unsupported.rb#14
|
326
|
+
def verify(*_arg0); end
|
327
|
+
|
328
|
+
class << self
|
329
|
+
# @raise [NotImplementedError]
|
330
|
+
#
|
331
|
+
# source://jwt//lib/jwt/algos/unsupported.rb#10
|
332
|
+
def sign(*_arg0); end
|
333
|
+
|
334
|
+
# @raise [JWT::VerificationError]
|
335
|
+
#
|
336
|
+
# source://jwt//lib/jwt/algos/unsupported.rb#14
|
337
|
+
def verify(*_arg0); end
|
338
|
+
end
|
339
|
+
end
|
340
|
+
|
341
|
+
# source://jwt//lib/jwt/algos/unsupported.rb#8
|
342
|
+
JWT::Algos::Unsupported::SUPPORTED = T.let(T.unsafe(nil), Array)
|
343
|
+
|
344
|
+
# Base64 helpers
|
345
|
+
#
|
346
|
+
# source://jwt//lib/jwt/base64.rb#7
|
347
|
+
class JWT::Base64
|
348
|
+
class << self
|
349
|
+
# source://jwt//lib/jwt/base64.rb#13
|
350
|
+
def url_decode(str); end
|
351
|
+
|
352
|
+
# source://jwt//lib/jwt/base64.rb#9
|
353
|
+
def url_encode(str); end
|
354
|
+
end
|
355
|
+
end
|
356
|
+
|
357
|
+
# source://jwt//lib/jwt/claims_validator.rb#6
|
358
|
+
class JWT::ClaimsValidator
|
359
|
+
# @return [ClaimsValidator] a new instance of ClaimsValidator
|
360
|
+
#
|
361
|
+
# source://jwt//lib/jwt/claims_validator.rb#13
|
362
|
+
def initialize(payload); end
|
363
|
+
|
364
|
+
# source://jwt//lib/jwt/claims_validator.rb#17
|
365
|
+
def validate!; end
|
366
|
+
|
367
|
+
private
|
368
|
+
|
369
|
+
# @raise [InvalidPayload]
|
370
|
+
#
|
371
|
+
# source://jwt//lib/jwt/claims_validator.rb#31
|
372
|
+
def validate_is_numeric(claim); end
|
373
|
+
|
374
|
+
# source://jwt//lib/jwt/claims_validator.rb#25
|
375
|
+
def validate_numeric_claims; end
|
376
|
+
end
|
377
|
+
|
378
|
+
# source://jwt//lib/jwt/claims_validator.rb#7
|
379
|
+
JWT::ClaimsValidator::NUMERIC_CLAIMS = T.let(T.unsafe(nil), Array)
|
380
|
+
|
381
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#4
|
382
|
+
module JWT::Configuration
|
383
|
+
# source://jwt//lib/jwt/configuration.rb#11
|
384
|
+
def configuration; end
|
385
|
+
|
386
|
+
# @yield [configuration]
|
387
|
+
#
|
388
|
+
# source://jwt//lib/jwt/configuration.rb#7
|
389
|
+
def configure; end
|
390
|
+
end
|
391
|
+
|
392
|
+
# source://jwt//lib/jwt/configuration/container.rb#8
|
393
|
+
class JWT::Configuration::Container
|
394
|
+
# @return [Container] a new instance of Container
|
395
|
+
#
|
396
|
+
# source://jwt//lib/jwt/configuration/container.rb#11
|
397
|
+
def initialize; end
|
398
|
+
|
399
|
+
# Returns the value of attribute decode.
|
400
|
+
#
|
401
|
+
# source://jwt//lib/jwt/configuration/container.rb#9
|
402
|
+
def decode; end
|
403
|
+
|
404
|
+
# Sets the attribute decode
|
405
|
+
#
|
406
|
+
# @param value the value to set the attribute decode to.
|
407
|
+
#
|
408
|
+
# source://jwt//lib/jwt/configuration/container.rb#9
|
409
|
+
def decode=(_arg0); end
|
410
|
+
|
411
|
+
# Returns the value of attribute jwk.
|
412
|
+
#
|
413
|
+
# source://jwt//lib/jwt/configuration/container.rb#9
|
414
|
+
def jwk; end
|
415
|
+
|
416
|
+
# Sets the attribute jwk
|
417
|
+
#
|
418
|
+
# @param value the value to set the attribute jwk to.
|
419
|
+
#
|
420
|
+
# source://jwt//lib/jwt/configuration/container.rb#9
|
421
|
+
def jwk=(_arg0); end
|
422
|
+
|
423
|
+
# source://jwt//lib/jwt/configuration/container.rb#15
|
424
|
+
def reset!; end
|
425
|
+
end
|
426
|
+
|
427
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#5
|
428
|
+
class JWT::Configuration::DecodeConfiguration
|
429
|
+
# @return [DecodeConfiguration] a new instance of DecodeConfiguration
|
430
|
+
#
|
431
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#17
|
432
|
+
def initialize; end
|
433
|
+
|
434
|
+
# Returns the value of attribute algorithms.
|
435
|
+
#
|
436
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#6
|
437
|
+
def algorithms; end
|
438
|
+
|
439
|
+
# Sets the attribute algorithms
|
440
|
+
#
|
441
|
+
# @param value the value to set the attribute algorithms to.
|
442
|
+
#
|
443
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#6
|
444
|
+
def algorithms=(_arg0); end
|
445
|
+
|
446
|
+
# Returns the value of attribute leeway.
|
447
|
+
#
|
448
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#6
|
449
|
+
def leeway; end
|
450
|
+
|
451
|
+
# Sets the attribute leeway
|
452
|
+
#
|
453
|
+
# @param value the value to set the attribute leeway to.
|
454
|
+
#
|
455
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#6
|
456
|
+
def leeway=(_arg0); end
|
457
|
+
|
458
|
+
# Returns the value of attribute required_claims.
|
459
|
+
#
|
460
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#6
|
461
|
+
def required_claims; end
|
462
|
+
|
463
|
+
# Sets the attribute required_claims
|
464
|
+
#
|
465
|
+
# @param value the value to set the attribute required_claims to.
|
466
|
+
#
|
467
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#6
|
468
|
+
def required_claims=(_arg0); end
|
469
|
+
|
470
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#30
|
471
|
+
def to_h; end
|
472
|
+
|
473
|
+
# Returns the value of attribute verify_aud.
|
474
|
+
#
|
475
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#6
|
476
|
+
def verify_aud; end
|
477
|
+
|
478
|
+
# Sets the attribute verify_aud
|
479
|
+
#
|
480
|
+
# @param value the value to set the attribute verify_aud to.
|
481
|
+
#
|
482
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#6
|
483
|
+
def verify_aud=(_arg0); end
|
484
|
+
|
485
|
+
# Returns the value of attribute verify_expiration.
|
486
|
+
#
|
487
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#6
|
488
|
+
def verify_expiration; end
|
489
|
+
|
490
|
+
# Sets the attribute verify_expiration
|
491
|
+
#
|
492
|
+
# @param value the value to set the attribute verify_expiration to.
|
493
|
+
#
|
494
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#6
|
495
|
+
def verify_expiration=(_arg0); end
|
496
|
+
|
497
|
+
# Returns the value of attribute verify_iat.
|
498
|
+
#
|
499
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#6
|
500
|
+
def verify_iat; end
|
501
|
+
|
502
|
+
# Sets the attribute verify_iat
|
503
|
+
#
|
504
|
+
# @param value the value to set the attribute verify_iat to.
|
505
|
+
#
|
506
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#6
|
507
|
+
def verify_iat=(_arg0); end
|
508
|
+
|
509
|
+
# Returns the value of attribute verify_iss.
|
510
|
+
#
|
511
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#6
|
512
|
+
def verify_iss; end
|
513
|
+
|
514
|
+
# Sets the attribute verify_iss
|
515
|
+
#
|
516
|
+
# @param value the value to set the attribute verify_iss to.
|
517
|
+
#
|
518
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#6
|
519
|
+
def verify_iss=(_arg0); end
|
520
|
+
|
521
|
+
# Returns the value of attribute verify_jti.
|
522
|
+
#
|
523
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#6
|
524
|
+
def verify_jti; end
|
525
|
+
|
526
|
+
# Sets the attribute verify_jti
|
527
|
+
#
|
528
|
+
# @param value the value to set the attribute verify_jti to.
|
529
|
+
#
|
530
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#6
|
531
|
+
def verify_jti=(_arg0); end
|
532
|
+
|
533
|
+
# Returns the value of attribute verify_not_before.
|
534
|
+
#
|
535
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#6
|
536
|
+
def verify_not_before; end
|
537
|
+
|
538
|
+
# Sets the attribute verify_not_before
|
539
|
+
#
|
540
|
+
# @param value the value to set the attribute verify_not_before to.
|
541
|
+
#
|
542
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#6
|
543
|
+
def verify_not_before=(_arg0); end
|
544
|
+
|
545
|
+
# Returns the value of attribute verify_sub.
|
546
|
+
#
|
547
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#6
|
548
|
+
def verify_sub; end
|
549
|
+
|
550
|
+
# Sets the attribute verify_sub
|
551
|
+
#
|
552
|
+
# @param value the value to set the attribute verify_sub to.
|
553
|
+
#
|
554
|
+
# source://jwt//lib/jwt/configuration/decode_configuration.rb#6
|
555
|
+
def verify_sub=(_arg0); end
|
556
|
+
end
|
557
|
+
|
558
|
+
# source://jwt//lib/jwt/configuration/jwk_configuration.rb#8
|
559
|
+
class JWT::Configuration::JwkConfiguration
|
560
|
+
# @return [JwkConfiguration] a new instance of JwkConfiguration
|
561
|
+
#
|
562
|
+
# source://jwt//lib/jwt/configuration/jwk_configuration.rb#9
|
563
|
+
def initialize; end
|
564
|
+
|
565
|
+
# Returns the value of attribute kid_generator.
|
566
|
+
#
|
567
|
+
# source://jwt//lib/jwt/configuration/jwk_configuration.rb#24
|
568
|
+
def kid_generator; end
|
569
|
+
|
570
|
+
# Sets the attribute kid_generator
|
571
|
+
#
|
572
|
+
# @param value the value to set the attribute kid_generator to.
|
573
|
+
#
|
574
|
+
# source://jwt//lib/jwt/configuration/jwk_configuration.rb#24
|
575
|
+
def kid_generator=(_arg0); end
|
576
|
+
|
577
|
+
# source://jwt//lib/jwt/configuration/jwk_configuration.rb#13
|
578
|
+
def kid_generator_type=(value); end
|
579
|
+
end
|
580
|
+
|
581
|
+
# Decoding logic for JWT
|
582
|
+
#
|
583
|
+
# source://jwt//lib/jwt/decode.rb#11
|
584
|
+
class JWT::Decode
|
585
|
+
# @raise [JWT::DecodeError]
|
586
|
+
# @return [Decode] a new instance of Decode
|
587
|
+
#
|
588
|
+
# source://jwt//lib/jwt/decode.rb#12
|
589
|
+
def initialize(jwt, key, verify, options, &keyfinder); end
|
590
|
+
|
591
|
+
# @raise [JWT::DecodeError]
|
592
|
+
#
|
593
|
+
# source://jwt//lib/jwt/decode.rb#24
|
594
|
+
def decode_segments; end
|
595
|
+
|
596
|
+
private
|
597
|
+
|
598
|
+
# source://jwt//lib/jwt/decode.rb#146
|
599
|
+
def alg_in_header; end
|
600
|
+
|
601
|
+
# source://jwt//lib/jwt/decode.rb#90
|
602
|
+
def allowed_algorithms; end
|
603
|
+
|
604
|
+
# source://jwt//lib/jwt/decode.rb#72
|
605
|
+
def allowed_and_valid_algorithms; end
|
606
|
+
|
607
|
+
# source://jwt//lib/jwt/decode.rb#142
|
608
|
+
def decode_signature; end
|
609
|
+
|
610
|
+
# @raise [JWT::DecodeError]
|
611
|
+
#
|
612
|
+
# source://jwt//lib/jwt/decode.rb#113
|
613
|
+
def find_key(&keyfinder); end
|
614
|
+
|
615
|
+
# source://jwt//lib/jwt/decode.rb#82
|
616
|
+
def given_algorithms; end
|
617
|
+
|
618
|
+
# source://jwt//lib/jwt/decode.rb#150
|
619
|
+
def header; end
|
620
|
+
|
621
|
+
# @return [Boolean]
|
622
|
+
#
|
623
|
+
# source://jwt//lib/jwt/decode.rb#138
|
624
|
+
def none_algorithm?; end
|
625
|
+
|
626
|
+
# source://jwt//lib/jwt/decode.rb#162
|
627
|
+
def parse_and_decode(segment); end
|
628
|
+
|
629
|
+
# source://jwt//lib/jwt/decode.rb#154
|
630
|
+
def payload; end
|
631
|
+
|
632
|
+
# source://jwt//lib/jwt/decode.rb#94
|
633
|
+
def resolve_allowed_algorithms; end
|
634
|
+
|
635
|
+
# source://jwt//lib/jwt/decode.rb#134
|
636
|
+
def segment_length; end
|
637
|
+
|
638
|
+
# source://jwt//lib/jwt/decode.rb#58
|
639
|
+
def set_key; end
|
640
|
+
|
641
|
+
# source://jwt//lib/jwt/decode.rb#158
|
642
|
+
def signing_input; end
|
643
|
+
|
644
|
+
# Move algorithms matching the JWT alg header to the beginning of the list
|
645
|
+
#
|
646
|
+
# source://jwt//lib/jwt/decode.rb#107
|
647
|
+
def sort_by_alg_header(algs); end
|
648
|
+
|
649
|
+
# @raise [JWT::DecodeError]
|
650
|
+
#
|
651
|
+
# source://jwt//lib/jwt/decode.rb#126
|
652
|
+
def validate_segment_count!; end
|
653
|
+
|
654
|
+
# @raise [JWT::IncorrectAlgorithm]
|
655
|
+
#
|
656
|
+
# source://jwt//lib/jwt/decode.rb#52
|
657
|
+
def verify_algo; end
|
658
|
+
|
659
|
+
# source://jwt//lib/jwt/decode.rb#121
|
660
|
+
def verify_claims; end
|
661
|
+
|
662
|
+
# @raise [JWT::DecodeError]
|
663
|
+
#
|
664
|
+
# source://jwt//lib/jwt/decode.rb#40
|
665
|
+
def verify_signature; end
|
666
|
+
|
667
|
+
# @return [Boolean]
|
668
|
+
#
|
669
|
+
# source://jwt//lib/jwt/decode.rb#66
|
670
|
+
def verify_signature_for?(key); end
|
671
|
+
end
|
672
|
+
|
673
|
+
# Order is very important - first check for string keys, next for symbols
|
674
|
+
#
|
675
|
+
# source://jwt//lib/jwt/decode.rb#77
|
676
|
+
JWT::Decode::ALGORITHM_KEYS = T.let(T.unsafe(nil), Array)
|
677
|
+
|
678
|
+
# source://jwt//lib/jwt/error.rb#5
|
679
|
+
class JWT::DecodeError < ::StandardError; end
|
680
|
+
|
681
|
+
# Encoding logic for JWT
|
682
|
+
#
|
683
|
+
# source://jwt//lib/jwt/encode.rb#9
|
684
|
+
class JWT::Encode
|
685
|
+
# @return [Encode] a new instance of Encode
|
686
|
+
#
|
687
|
+
# source://jwt//lib/jwt/encode.rb#12
|
688
|
+
def initialize(options); end
|
689
|
+
|
690
|
+
# source://jwt//lib/jwt/encode.rb#20
|
691
|
+
def segments; end
|
692
|
+
|
693
|
+
private
|
694
|
+
|
695
|
+
# source://jwt//lib/jwt/encode.rb#75
|
696
|
+
def combine(*parts); end
|
697
|
+
|
698
|
+
# source://jwt//lib/jwt/encode.rb#71
|
699
|
+
def encode_data(data); end
|
700
|
+
|
701
|
+
# source://jwt//lib/jwt/encode.rb#49
|
702
|
+
def encode_header; end
|
703
|
+
|
704
|
+
# source://jwt//lib/jwt/encode.rb#53
|
705
|
+
def encode_payload; end
|
706
|
+
|
707
|
+
# source://jwt//lib/jwt/encode.rb#67
|
708
|
+
def encode_signature; end
|
709
|
+
|
710
|
+
# source://jwt//lib/jwt/encode.rb#33
|
711
|
+
def encoded_header; end
|
712
|
+
|
713
|
+
# source://jwt//lib/jwt/encode.rb#45
|
714
|
+
def encoded_header_and_payload; end
|
715
|
+
|
716
|
+
# source://jwt//lib/jwt/encode.rb#37
|
717
|
+
def encoded_payload; end
|
718
|
+
|
719
|
+
# source://jwt//lib/jwt/encode.rb#41
|
720
|
+
def encoded_signature; end
|
721
|
+
|
722
|
+
# source://jwt//lib/jwt/encode.rb#27
|
723
|
+
def resolve_algorithm(algorithm); end
|
724
|
+
|
725
|
+
# source://jwt//lib/jwt/encode.rb#57
|
726
|
+
def signature; end
|
727
|
+
|
728
|
+
# source://jwt//lib/jwt/encode.rb#61
|
729
|
+
def validate_claims!; end
|
730
|
+
end
|
731
|
+
|
732
|
+
# source://jwt//lib/jwt/encode.rb#10
|
733
|
+
JWT::Encode::ALG_KEY = T.let(T.unsafe(nil), String)
|
734
|
+
|
735
|
+
# source://jwt//lib/jwt/error.rb#4
|
736
|
+
class JWT::EncodeError < ::StandardError; end
|
737
|
+
|
738
|
+
# source://jwt//lib/jwt/error.rb#9
|
739
|
+
class JWT::ExpiredSignature < ::JWT::DecodeError; end
|
740
|
+
|
741
|
+
# source://jwt//lib/jwt/error.rb#11
|
742
|
+
class JWT::ImmatureSignature < ::JWT::DecodeError; end
|
743
|
+
|
744
|
+
# source://jwt//lib/jwt/error.rb#10
|
745
|
+
class JWT::IncorrectAlgorithm < ::JWT::DecodeError; end
|
746
|
+
|
747
|
+
# source://jwt//lib/jwt/error.rb#15
|
748
|
+
class JWT::InvalidAudError < ::JWT::DecodeError; end
|
749
|
+
|
750
|
+
# source://jwt//lib/jwt/error.rb#14
|
751
|
+
class JWT::InvalidIatError < ::JWT::DecodeError; end
|
752
|
+
|
753
|
+
# source://jwt//lib/jwt/error.rb#12
|
754
|
+
class JWT::InvalidIssuerError < ::JWT::DecodeError; end
|
755
|
+
|
756
|
+
# source://jwt//lib/jwt/error.rb#17
|
757
|
+
class JWT::InvalidJtiError < ::JWT::DecodeError; end
|
758
|
+
|
759
|
+
# source://jwt//lib/jwt/error.rb#18
|
760
|
+
class JWT::InvalidPayload < ::JWT::DecodeError; end
|
761
|
+
|
762
|
+
# source://jwt//lib/jwt/error.rb#16
|
763
|
+
class JWT::InvalidSubError < ::JWT::DecodeError; end
|
764
|
+
|
765
|
+
# JSON wrapper
|
766
|
+
#
|
767
|
+
# source://jwt//lib/jwt/json.rb#7
|
768
|
+
class JWT::JSON
|
769
|
+
class << self
|
770
|
+
# source://jwt//lib/jwt/json.rb#9
|
771
|
+
def generate(data); end
|
772
|
+
|
773
|
+
# source://jwt//lib/jwt/json.rb#13
|
774
|
+
def parse(data); end
|
775
|
+
end
|
776
|
+
end
|
777
|
+
|
778
|
+
# source://jwt//lib/jwt/jwk/kid_as_key_digest.rb#4
|
779
|
+
module JWT::JWK
|
780
|
+
class << self
|
781
|
+
# source://jwt//lib/jwt/jwk.rb#24
|
782
|
+
def classes; end
|
783
|
+
|
784
|
+
# source://jwt//lib/jwt/jwk.rb#9
|
785
|
+
def create_from(key, params = T.unsafe(nil), options = T.unsafe(nil)); end
|
786
|
+
|
787
|
+
# source://jwt//lib/jwt/jwk.rb#9
|
788
|
+
def import(key, params = T.unsafe(nil), options = T.unsafe(nil)); end
|
789
|
+
|
790
|
+
# source://jwt//lib/jwt/jwk.rb#9
|
791
|
+
def new(key, params = T.unsafe(nil), options = T.unsafe(nil)); end
|
792
|
+
|
793
|
+
private
|
794
|
+
|
795
|
+
# source://jwt//lib/jwt/jwk.rb#38
|
796
|
+
def generate_mappings; end
|
797
|
+
|
798
|
+
# source://jwt//lib/jwt/jwk.rb#34
|
799
|
+
def mappings; end
|
800
|
+
end
|
801
|
+
end
|
802
|
+
|
803
|
+
# source://jwt//lib/jwt/jwk/ec.rb#7
|
804
|
+
class JWT::JWK::EC < ::JWT::JWK::KeyBase
|
805
|
+
# @return [EC] a new instance of EC
|
806
|
+
#
|
807
|
+
# source://jwt//lib/jwt/jwk/ec.rb#15
|
808
|
+
def initialize(key, params = T.unsafe(nil), options = T.unsafe(nil)); end
|
809
|
+
|
810
|
+
# source://jwt//lib/jwt/jwk/ec.rb#66
|
811
|
+
def []=(key, value); end
|
812
|
+
|
813
|
+
# source://jwt//lib/jwt/jwk/ec.rb#53
|
814
|
+
def export(options = T.unsafe(nil)); end
|
815
|
+
|
816
|
+
# source://jwt//lib/jwt/jwk/ec.rb#59
|
817
|
+
def key_digest; end
|
818
|
+
|
819
|
+
# source://jwt//lib/jwt/jwk/ec.rb#29
|
820
|
+
def keypair; end
|
821
|
+
|
822
|
+
# source://jwt//lib/jwt/jwk/ec.rb#49
|
823
|
+
def members; end
|
824
|
+
|
825
|
+
# @return [Boolean]
|
826
|
+
#
|
827
|
+
# source://jwt//lib/jwt/jwk/ec.rb#33
|
828
|
+
def private?; end
|
829
|
+
|
830
|
+
# source://jwt//lib/jwt/jwk/ec.rb#45
|
831
|
+
def public_key; end
|
832
|
+
|
833
|
+
# source://jwt//lib/jwt/jwk/ec.rb#37
|
834
|
+
def signing_key; end
|
835
|
+
|
836
|
+
# source://jwt//lib/jwt/jwk/ec.rb#41
|
837
|
+
def verify_key; end
|
838
|
+
|
839
|
+
private
|
840
|
+
|
841
|
+
# @raise [ArgumentError]
|
842
|
+
#
|
843
|
+
# source://jwt//lib/jwt/jwk/ec.rb#94
|
844
|
+
def check_jwk_params!(key_params, params); end
|
845
|
+
|
846
|
+
# source://jwt//lib/jwt/jwk/ec.rb#144
|
847
|
+
def create_ec_key(jwk_crv, jwk_x, jwk_y, jwk_d); end
|
848
|
+
|
849
|
+
# source://jwt//lib/jwt/jwk/ec.rb#208
|
850
|
+
def decode_octets(jwk_data); end
|
851
|
+
|
852
|
+
# source://jwt//lib/jwt/jwk/ec.rb#212
|
853
|
+
def decode_open_ssl_bn(jwk_data); end
|
854
|
+
|
855
|
+
# source://jwt//lib/jwt/jwk/ec.rb#76
|
856
|
+
def ec_key; end
|
857
|
+
|
858
|
+
# source://jwt//lib/jwt/jwk/ec.rb#121
|
859
|
+
def encode_octets(octets); end
|
860
|
+
|
861
|
+
# source://jwt//lib/jwt/jwk/ec.rb#127
|
862
|
+
def encode_open_ssl_bn(key_part); end
|
863
|
+
|
864
|
+
# source://jwt//lib/jwt/jwk/ec.rb#80
|
865
|
+
def extract_key_params(key); end
|
866
|
+
|
867
|
+
# source://jwt//lib/jwt/jwk/ec.rb#100
|
868
|
+
def keypair_components(ec_keypair); end
|
869
|
+
|
870
|
+
# source://jwt//lib/jwt/jwk/ec.rb#131
|
871
|
+
def parse_ec_key(key); end
|
872
|
+
|
873
|
+
class << self
|
874
|
+
# source://jwt//lib/jwt/jwk/ec.rb#217
|
875
|
+
def import(jwk_data); end
|
876
|
+
|
877
|
+
# source://jwt//lib/jwt/jwk/ec.rb#221
|
878
|
+
def to_openssl_curve(crv); end
|
879
|
+
end
|
880
|
+
end
|
881
|
+
|
882
|
+
# source://jwt//lib/jwt/jwk/ec.rb#10
|
883
|
+
JWT::JWK::EC::BINARY = T.let(T.unsafe(nil), Integer)
|
884
|
+
|
885
|
+
# source://jwt//lib/jwt/jwk/ec.rb#13
|
886
|
+
JWT::JWK::EC::EC_KEY_ELEMENTS = T.let(T.unsafe(nil), Array)
|
887
|
+
|
888
|
+
# source://jwt//lib/jwt/jwk/ec.rb#12
|
889
|
+
JWT::JWK::EC::EC_PRIVATE_KEY_ELEMENTS = T.let(T.unsafe(nil), Array)
|
890
|
+
|
891
|
+
# source://jwt//lib/jwt/jwk/ec.rb#11
|
892
|
+
JWT::JWK::EC::EC_PUBLIC_KEY_ELEMENTS = T.let(T.unsafe(nil), Array)
|
893
|
+
|
894
|
+
# source://jwt//lib/jwt/jwk/ec.rb#8
|
895
|
+
JWT::JWK::EC::KTY = T.let(T.unsafe(nil), String)
|
896
|
+
|
897
|
+
# source://jwt//lib/jwt/jwk/ec.rb#9
|
898
|
+
JWT::JWK::EC::KTYS = T.let(T.unsafe(nil), Array)
|
899
|
+
|
900
|
+
# source://jwt//lib/jwt/jwk/hmac.rb#5
|
901
|
+
class JWT::JWK::HMAC < ::JWT::JWK::KeyBase
|
902
|
+
# @return [HMAC] a new instance of HMAC
|
903
|
+
#
|
904
|
+
# source://jwt//lib/jwt/jwk/hmac.rb#12
|
905
|
+
def initialize(key, params = T.unsafe(nil), options = T.unsafe(nil)); end
|
906
|
+
|
907
|
+
# source://jwt//lib/jwt/jwk/hmac.rb#63
|
908
|
+
def []=(key, value); end
|
909
|
+
|
910
|
+
# See https://tools.ietf.org/html/rfc7517#appendix-A.3
|
911
|
+
#
|
912
|
+
# source://jwt//lib/jwt/jwk/hmac.rb#47
|
913
|
+
def export(options = T.unsafe(nil)); end
|
914
|
+
|
915
|
+
# source://jwt//lib/jwt/jwk/hmac.rb#57
|
916
|
+
def key_digest; end
|
917
|
+
|
918
|
+
# source://jwt//lib/jwt/jwk/hmac.rb#26
|
919
|
+
def keypair; end
|
920
|
+
|
921
|
+
# source://jwt//lib/jwt/jwk/hmac.rb#53
|
922
|
+
def members; end
|
923
|
+
|
924
|
+
# @return [Boolean]
|
925
|
+
#
|
926
|
+
# source://jwt//lib/jwt/jwk/hmac.rb#30
|
927
|
+
def private?; end
|
928
|
+
|
929
|
+
# source://jwt//lib/jwt/jwk/hmac.rb#34
|
930
|
+
def public_key; end
|
931
|
+
|
932
|
+
# source://jwt//lib/jwt/jwk/hmac.rb#42
|
933
|
+
def signing_key; end
|
934
|
+
|
935
|
+
# source://jwt//lib/jwt/jwk/hmac.rb#38
|
936
|
+
def verify_key; end
|
937
|
+
|
938
|
+
private
|
939
|
+
|
940
|
+
# @raise [ArgumentError]
|
941
|
+
#
|
942
|
+
# source://jwt//lib/jwt/jwk/hmac.rb#90
|
943
|
+
def check_jwk(keypair, params); end
|
944
|
+
|
945
|
+
# source://jwt//lib/jwt/jwk/hmac.rb#77
|
946
|
+
def extract_key_params(key); end
|
947
|
+
|
948
|
+
# source://jwt//lib/jwt/jwk/hmac.rb#73
|
949
|
+
def secret; end
|
950
|
+
|
951
|
+
class << self
|
952
|
+
# source://jwt//lib/jwt/jwk/hmac.rb#97
|
953
|
+
def import(jwk_data); end
|
954
|
+
end
|
955
|
+
end
|
956
|
+
|
957
|
+
# source://jwt//lib/jwt/jwk/hmac.rb#10
|
958
|
+
JWT::JWK::HMAC::HMAC_KEY_ELEMENTS = T.let(T.unsafe(nil), Array)
|
959
|
+
|
960
|
+
# source://jwt//lib/jwt/jwk/hmac.rb#9
|
961
|
+
JWT::JWK::HMAC::HMAC_PRIVATE_KEY_ELEMENTS = T.let(T.unsafe(nil), Array)
|
962
|
+
|
963
|
+
# source://jwt//lib/jwt/jwk/hmac.rb#8
|
964
|
+
JWT::JWK::HMAC::HMAC_PUBLIC_KEY_ELEMENTS = T.let(T.unsafe(nil), Array)
|
965
|
+
|
966
|
+
# source://jwt//lib/jwt/jwk/hmac.rb#6
|
967
|
+
JWT::JWK::HMAC::KTY = T.let(T.unsafe(nil), String)
|
968
|
+
|
969
|
+
# source://jwt//lib/jwt/jwk/hmac.rb#7
|
970
|
+
JWT::JWK::HMAC::KTYS = T.let(T.unsafe(nil), Array)
|
971
|
+
|
972
|
+
# source://jwt//lib/jwt/jwk/key_base.rb#5
|
973
|
+
class JWT::JWK::KeyBase
|
974
|
+
# @return [KeyBase] a new instance of KeyBase
|
975
|
+
#
|
976
|
+
# source://jwt//lib/jwt/jwk/key_base.rb#11
|
977
|
+
def initialize(options, params = T.unsafe(nil)); end
|
978
|
+
|
979
|
+
# source://jwt//lib/jwt/jwk/key_base.rb#46
|
980
|
+
def <=>(other); end
|
981
|
+
|
982
|
+
# source://jwt//lib/jwt/jwk/key_base.rb#40
|
983
|
+
def ==(other); end
|
984
|
+
|
985
|
+
# source://jwt//lib/jwt/jwk/key_base.rb#32
|
986
|
+
def [](key); end
|
987
|
+
|
988
|
+
# source://jwt//lib/jwt/jwk/key_base.rb#36
|
989
|
+
def []=(key, value); end
|
990
|
+
|
991
|
+
# source://jwt//lib/jwt/jwk/key_base.rb#40
|
992
|
+
def eql?(other); end
|
993
|
+
|
994
|
+
# source://jwt//lib/jwt/jwk/key_base.rb#28
|
995
|
+
def hash; end
|
996
|
+
|
997
|
+
# source://jwt//lib/jwt/jwk/key_base.rb#24
|
998
|
+
def kid; end
|
999
|
+
|
1000
|
+
private
|
1001
|
+
|
1002
|
+
# Returns the value of attribute parameters.
|
1003
|
+
#
|
1004
|
+
# source://jwt//lib/jwt/jwk/key_base.rb#52
|
1005
|
+
def parameters; end
|
1006
|
+
|
1007
|
+
class << self
|
1008
|
+
# @private
|
1009
|
+
#
|
1010
|
+
# source://jwt//lib/jwt/jwk/key_base.rb#6
|
1011
|
+
def inherited(klass); end
|
1012
|
+
end
|
1013
|
+
end
|
1014
|
+
|
1015
|
+
# source://jwt//lib/jwt/jwk/key_finder.rb#5
|
1016
|
+
class JWT::JWK::KeyFinder
|
1017
|
+
# @return [KeyFinder] a new instance of KeyFinder
|
1018
|
+
#
|
1019
|
+
# source://jwt//lib/jwt/jwk/key_finder.rb#6
|
1020
|
+
def initialize(options); end
|
1021
|
+
|
1022
|
+
# @raise [::JWT::DecodeError]
|
1023
|
+
#
|
1024
|
+
# source://jwt//lib/jwt/jwk/key_finder.rb#17
|
1025
|
+
def key_for(kid); end
|
1026
|
+
|
1027
|
+
private
|
1028
|
+
|
1029
|
+
# source://jwt//lib/jwt/jwk/key_finder.rb#31
|
1030
|
+
def resolve_key(kid); end
|
1031
|
+
end
|
1032
|
+
|
1033
|
+
# source://jwt//lib/jwt/jwk/kid_as_key_digest.rb#5
|
1034
|
+
class JWT::JWK::KidAsKeyDigest
|
1035
|
+
# @return [KidAsKeyDigest] a new instance of KidAsKeyDigest
|
1036
|
+
#
|
1037
|
+
# source://jwt//lib/jwt/jwk/kid_as_key_digest.rb#6
|
1038
|
+
def initialize(jwk); end
|
1039
|
+
|
1040
|
+
# source://jwt//lib/jwt/jwk/kid_as_key_digest.rb#10
|
1041
|
+
def generate; end
|
1042
|
+
end
|
1043
|
+
|
1044
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#5
|
1045
|
+
class JWT::JWK::RSA < ::JWT::JWK::KeyBase
|
1046
|
+
# @return [RSA] a new instance of RSA
|
1047
|
+
#
|
1048
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#16
|
1049
|
+
def initialize(key, params = T.unsafe(nil), options = T.unsafe(nil)); end
|
1050
|
+
|
1051
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#66
|
1052
|
+
def []=(key, value); end
|
1053
|
+
|
1054
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#50
|
1055
|
+
def export(options = T.unsafe(nil)); end
|
1056
|
+
|
1057
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#60
|
1058
|
+
def key_digest; end
|
1059
|
+
|
1060
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#30
|
1061
|
+
def keypair; end
|
1062
|
+
|
1063
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#56
|
1064
|
+
def members; end
|
1065
|
+
|
1066
|
+
# @return [Boolean]
|
1067
|
+
#
|
1068
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#34
|
1069
|
+
def private?; end
|
1070
|
+
|
1071
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#38
|
1072
|
+
def public_key; end
|
1073
|
+
|
1074
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#42
|
1075
|
+
def signing_key; end
|
1076
|
+
|
1077
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#46
|
1078
|
+
def verify_key; end
|
1079
|
+
|
1080
|
+
private
|
1081
|
+
|
1082
|
+
# @raise [ArgumentError]
|
1083
|
+
#
|
1084
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#94
|
1085
|
+
def check_jwk_params!(key_params, params); end
|
1086
|
+
|
1087
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#126
|
1088
|
+
def decode_open_ssl_bn(jwk_data); end
|
1089
|
+
|
1090
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#120
|
1091
|
+
def encode_open_ssl_bn(key_part); end
|
1092
|
+
|
1093
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#80
|
1094
|
+
def extract_key_params(key); end
|
1095
|
+
|
1096
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#114
|
1097
|
+
def jwk_attributes(*attributes); end
|
1098
|
+
|
1099
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#100
|
1100
|
+
def parse_rsa_key(key); end
|
1101
|
+
|
1102
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#76
|
1103
|
+
def rsa_key; end
|
1104
|
+
|
1105
|
+
class << self
|
1106
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#141
|
1107
|
+
def create_rsa_key(rsa_parameters); end
|
1108
|
+
|
1109
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#169
|
1110
|
+
def create_rsa_key_using_accessors(rsa_parameters); end
|
1111
|
+
|
1112
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#141
|
1113
|
+
def create_rsa_key_using_der(rsa_parameters); end
|
1114
|
+
|
1115
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#159
|
1116
|
+
def create_rsa_key_using_sets(rsa_parameters); end
|
1117
|
+
|
1118
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#135
|
1119
|
+
def decode_open_ssl_bn(jwk_data); end
|
1120
|
+
|
1121
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#131
|
1122
|
+
def import(jwk_data); end
|
1123
|
+
|
1124
|
+
# @raise [JWT::JWKError]
|
1125
|
+
#
|
1126
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#184
|
1127
|
+
def validate_rsa_parameters!(rsa_parameters); end
|
1128
|
+
end
|
1129
|
+
end
|
1130
|
+
|
1131
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#6
|
1132
|
+
JWT::JWK::RSA::BINARY = T.let(T.unsafe(nil), Integer)
|
1133
|
+
|
1134
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#7
|
1135
|
+
JWT::JWK::RSA::KTY = T.let(T.unsafe(nil), String)
|
1136
|
+
|
1137
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#8
|
1138
|
+
JWT::JWK::RSA::KTYS = T.let(T.unsafe(nil), Array)
|
1139
|
+
|
1140
|
+
# https://www.rfc-editor.org/rfc/rfc3447#appendix-A.1.2
|
1141
|
+
#
|
1142
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#14
|
1143
|
+
JWT::JWK::RSA::RSA_ASN1_SEQUENCE = T.let(T.unsafe(nil), Array)
|
1144
|
+
|
1145
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#11
|
1146
|
+
JWT::JWK::RSA::RSA_KEY_ELEMENTS = T.let(T.unsafe(nil), Array)
|
1147
|
+
|
1148
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#13
|
1149
|
+
JWT::JWK::RSA::RSA_OPT_PARAMS = T.let(T.unsafe(nil), Array)
|
1150
|
+
|
1151
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#10
|
1152
|
+
JWT::JWK::RSA::RSA_PRIVATE_KEY_ELEMENTS = T.let(T.unsafe(nil), Array)
|
1153
|
+
|
1154
|
+
# source://jwt//lib/jwt/jwk/rsa.rb#9
|
1155
|
+
JWT::JWK::RSA::RSA_PUBLIC_KEY_ELEMENTS = T.let(T.unsafe(nil), Array)
|
1156
|
+
|
1157
|
+
# source://jwt//lib/jwt/jwk/set.rb#7
|
1158
|
+
class JWT::JWK::Set
|
1159
|
+
include ::Enumerable
|
1160
|
+
extend ::Forwardable
|
1161
|
+
|
1162
|
+
# @return [Set] a new instance of Set
|
1163
|
+
#
|
1164
|
+
# source://jwt//lib/jwt/jwk/set.rb#13
|
1165
|
+
def initialize(jwks = T.unsafe(nil), options = T.unsafe(nil)); end
|
1166
|
+
|
1167
|
+
# source://jwt//lib/jwt/jwk/set.rb#58
|
1168
|
+
def +(enum); end
|
1169
|
+
|
1170
|
+
# source://jwt//lib/jwt/jwk/set.rb#62
|
1171
|
+
def <<(key); end
|
1172
|
+
|
1173
|
+
# source://jwt//lib/jwt/jwk/set.rb#67
|
1174
|
+
def ==(other); end
|
1175
|
+
|
1176
|
+
# source://jwt//lib/jwt/jwk/set.rb#62
|
1177
|
+
def add(key); end
|
1178
|
+
|
1179
|
+
# source://forwardable/1.3.2/forwardable.rb#229
|
1180
|
+
def delete(*args, **_arg1, &block); end
|
1181
|
+
|
1182
|
+
# source://forwardable/1.3.2/forwardable.rb#229
|
1183
|
+
def dig(*args, **_arg1, &block); end
|
1184
|
+
|
1185
|
+
# source://forwardable/1.3.2/forwardable.rb#229
|
1186
|
+
def each(*args, **_arg1, &block); end
|
1187
|
+
|
1188
|
+
# source://jwt//lib/jwt/jwk/set.rb#67
|
1189
|
+
def eql?(other); end
|
1190
|
+
|
1191
|
+
# source://jwt//lib/jwt/jwk/set.rb#31
|
1192
|
+
def export(options = T.unsafe(nil)); end
|
1193
|
+
|
1194
|
+
# source://jwt//lib/jwt/jwk/set.rb#37
|
1195
|
+
def filter!(&block); end
|
1196
|
+
|
1197
|
+
# Returns the value of attribute keys.
|
1198
|
+
#
|
1199
|
+
# source://jwt//lib/jwt/jwk/set.rb#11
|
1200
|
+
def keys; end
|
1201
|
+
|
1202
|
+
# source://forwardable/1.3.2/forwardable.rb#229
|
1203
|
+
def length(*args, **_arg1, &block); end
|
1204
|
+
|
1205
|
+
# source://jwt//lib/jwt/jwk/set.rb#53
|
1206
|
+
def merge(enum); end
|
1207
|
+
|
1208
|
+
# source://jwt//lib/jwt/jwk/set.rb#43
|
1209
|
+
def reject!(&block); end
|
1210
|
+
|
1211
|
+
# source://jwt//lib/jwt/jwk/set.rb#37
|
1212
|
+
def select!(&block); end
|
1213
|
+
|
1214
|
+
# source://forwardable/1.3.2/forwardable.rb#229
|
1215
|
+
def size(*args, **_arg1, &block); end
|
1216
|
+
|
1217
|
+
# source://jwt//lib/jwt/jwk/set.rb#58
|
1218
|
+
def union(enum); end
|
1219
|
+
|
1220
|
+
# source://jwt//lib/jwt/jwk/set.rb#49
|
1221
|
+
def uniq!(&block); end
|
1222
|
+
|
1223
|
+
# For symbolic manipulation
|
1224
|
+
#
|
1225
|
+
# source://jwt//lib/jwt/jwk/set.rb#58
|
1226
|
+
def |(enum); end
|
1227
|
+
end
|
1228
|
+
|
1229
|
+
# https://tools.ietf.org/html/rfc7638
|
1230
|
+
#
|
1231
|
+
# source://jwt//lib/jwt/jwk/thumbprint.rb#6
|
1232
|
+
class JWT::JWK::Thumbprint
|
1233
|
+
# @return [Thumbprint] a new instance of Thumbprint
|
1234
|
+
#
|
1235
|
+
# source://jwt//lib/jwt/jwk/thumbprint.rb#9
|
1236
|
+
def initialize(jwk); end
|
1237
|
+
|
1238
|
+
# source://jwt//lib/jwt/jwk/thumbprint.rb#13
|
1239
|
+
def generate; end
|
1240
|
+
|
1241
|
+
# Returns the value of attribute jwk.
|
1242
|
+
#
|
1243
|
+
# source://jwt//lib/jwt/jwk/thumbprint.rb#7
|
1244
|
+
def jwk; end
|
1245
|
+
|
1246
|
+
# source://jwt//lib/jwt/jwk/thumbprint.rb#13
|
1247
|
+
def to_s; end
|
1248
|
+
end
|
1249
|
+
|
1250
|
+
# source://jwt//lib/jwt/error.rb#21
|
1251
|
+
class JWT::JWKError < ::JWT::DecodeError; end
|
1252
|
+
|
1253
|
+
# source://jwt//lib/jwt/error.rb#19
|
1254
|
+
class JWT::MissingRequiredClaim < ::JWT::DecodeError; end
|
1255
|
+
|
1256
|
+
# source://jwt//lib/jwt/error.rb#6
|
1257
|
+
class JWT::RequiredDependencyError < ::StandardError; end
|
1258
|
+
|
1259
|
+
# source://jwt//lib/jwt/error.rb#13
|
1260
|
+
class JWT::UnsupportedEcdsaCurve < ::JWT::IncorrectAlgorithm; end
|
1261
|
+
|
1262
|
+
# Moments version builder module
|
1263
|
+
#
|
1264
|
+
# source://jwt//lib/jwt/version.rb#10
|
1265
|
+
module JWT::VERSION; end
|
1266
|
+
|
1267
|
+
# major version
|
1268
|
+
#
|
1269
|
+
# source://jwt//lib/jwt/version.rb#12
|
1270
|
+
JWT::VERSION::MAJOR = T.let(T.unsafe(nil), Integer)
|
1271
|
+
|
1272
|
+
# minor version
|
1273
|
+
#
|
1274
|
+
# source://jwt//lib/jwt/version.rb#14
|
1275
|
+
JWT::VERSION::MINOR = T.let(T.unsafe(nil), Integer)
|
1276
|
+
|
1277
|
+
# alpha, beta, etc. tag
|
1278
|
+
#
|
1279
|
+
# source://jwt//lib/jwt/version.rb#18
|
1280
|
+
JWT::VERSION::PRE = T.let(T.unsafe(nil), T.untyped)
|
1281
|
+
|
1282
|
+
# Build version string
|
1283
|
+
#
|
1284
|
+
# source://jwt//lib/jwt/version.rb#21
|
1285
|
+
JWT::VERSION::STRING = T.let(T.unsafe(nil), String)
|
1286
|
+
|
1287
|
+
# tiny version
|
1288
|
+
#
|
1289
|
+
# source://jwt//lib/jwt/version.rb#16
|
1290
|
+
JWT::VERSION::TINY = T.let(T.unsafe(nil), Integer)
|
1291
|
+
|
1292
|
+
# source://jwt//lib/jwt/error.rb#8
|
1293
|
+
class JWT::VerificationError < ::JWT::DecodeError; end
|
1294
|
+
|
1295
|
+
# JWT verify methods
|
1296
|
+
#
|
1297
|
+
# source://jwt//lib/jwt/verify.rb#7
|
1298
|
+
class JWT::Verify
|
1299
|
+
# @return [Verify] a new instance of Verify
|
1300
|
+
#
|
1301
|
+
# source://jwt//lib/jwt/verify.rb#28
|
1302
|
+
def initialize(payload, options); end
|
1303
|
+
|
1304
|
+
# @raise [JWT::InvalidAudError]
|
1305
|
+
#
|
1306
|
+
# source://jwt//lib/jwt/verify.rb#33
|
1307
|
+
def verify_aud; end
|
1308
|
+
|
1309
|
+
# @raise [JWT::ExpiredSignature]
|
1310
|
+
#
|
1311
|
+
# source://jwt//lib/jwt/verify.rb#40
|
1312
|
+
def verify_expiration; end
|
1313
|
+
|
1314
|
+
# @raise [JWT::InvalidIatError]
|
1315
|
+
#
|
1316
|
+
# source://jwt//lib/jwt/verify.rb#45
|
1317
|
+
def verify_iat; end
|
1318
|
+
|
1319
|
+
# source://jwt//lib/jwt/verify.rb#52
|
1320
|
+
def verify_iss; end
|
1321
|
+
|
1322
|
+
# source://jwt//lib/jwt/verify.rb#67
|
1323
|
+
def verify_jti; end
|
1324
|
+
|
1325
|
+
# @raise [JWT::ImmatureSignature]
|
1326
|
+
#
|
1327
|
+
# source://jwt//lib/jwt/verify.rb#79
|
1328
|
+
def verify_not_before; end
|
1329
|
+
|
1330
|
+
# source://jwt//lib/jwt/verify.rb#91
|
1331
|
+
def verify_required_claims; end
|
1332
|
+
|
1333
|
+
# @raise [JWT::InvalidSubError]
|
1334
|
+
#
|
1335
|
+
# source://jwt//lib/jwt/verify.rb#84
|
1336
|
+
def verify_sub; end
|
1337
|
+
|
1338
|
+
private
|
1339
|
+
|
1340
|
+
# source://jwt//lib/jwt/verify.rb#105
|
1341
|
+
def exp_leeway; end
|
1342
|
+
|
1343
|
+
# source://jwt//lib/jwt/verify.rb#101
|
1344
|
+
def global_leeway; end
|
1345
|
+
|
1346
|
+
# source://jwt//lib/jwt/verify.rb#109
|
1347
|
+
def nbf_leeway; end
|
1348
|
+
|
1349
|
+
class << self
|
1350
|
+
# source://jwt//lib/jwt/verify.rb#14
|
1351
|
+
def verify_aud(payload, options); end
|
1352
|
+
|
1353
|
+
# source://jwt//lib/jwt/verify.rb#19
|
1354
|
+
def verify_claims(payload, options); end
|
1355
|
+
|
1356
|
+
# source://jwt//lib/jwt/verify.rb#14
|
1357
|
+
def verify_expiration(payload, options); end
|
1358
|
+
|
1359
|
+
# source://jwt//lib/jwt/verify.rb#14
|
1360
|
+
def verify_iat(payload, options); end
|
1361
|
+
|
1362
|
+
# source://jwt//lib/jwt/verify.rb#14
|
1363
|
+
def verify_iss(payload, options); end
|
1364
|
+
|
1365
|
+
# source://jwt//lib/jwt/verify.rb#14
|
1366
|
+
def verify_jti(payload, options); end
|
1367
|
+
|
1368
|
+
# source://jwt//lib/jwt/verify.rb#14
|
1369
|
+
def verify_not_before(payload, options); end
|
1370
|
+
|
1371
|
+
# source://jwt//lib/jwt/verify.rb#14
|
1372
|
+
def verify_required_claims(payload, options); end
|
1373
|
+
|
1374
|
+
# source://jwt//lib/jwt/verify.rb#14
|
1375
|
+
def verify_sub(payload, options); end
|
1376
|
+
end
|
1377
|
+
end
|
1378
|
+
|
1379
|
+
# source://jwt//lib/jwt/verify.rb#8
|
1380
|
+
JWT::Verify::DEFAULTS = T.let(T.unsafe(nil), Hash)
|
1381
|
+
|
1382
|
+
# If the x5c header certificate chain can be validated by trusted root
|
1383
|
+
# certificates, and none of the certificates are revoked, returns the public
|
1384
|
+
# key from the first certificate.
|
1385
|
+
# See https://tools.ietf.org/html/rfc7515#section-4.1.6
|
1386
|
+
#
|
1387
|
+
# source://jwt//lib/jwt/x5c_key_finder.rb#11
|
1388
|
+
class JWT::X5cKeyFinder
|
1389
|
+
# @raise [ArgumentError]
|
1390
|
+
# @return [X5cKeyFinder] a new instance of X5cKeyFinder
|
1391
|
+
#
|
1392
|
+
# source://jwt//lib/jwt/x5c_key_finder.rb#12
|
1393
|
+
def initialize(root_certificates, crls = T.unsafe(nil)); end
|
1394
|
+
|
1395
|
+
# source://jwt//lib/jwt/x5c_key_finder.rb#18
|
1396
|
+
def from(x5c_header_or_certificates); end
|
1397
|
+
|
1398
|
+
private
|
1399
|
+
|
1400
|
+
# source://jwt//lib/jwt/x5c_key_finder.rb#36
|
1401
|
+
def build_store(root_certificates, crls); end
|
1402
|
+
|
1403
|
+
# source://jwt//lib/jwt/x5c_key_finder.rb#45
|
1404
|
+
def parse_certificates(x5c_header_or_certificates); end
|
1405
|
+
end
|