diff --git a/JWT.html b/JWT.html index 40effe78..d32fa1f7 100644 --- a/JWT.html +++ b/JWT.html @@ -821,7 +821,7 @@
-63 -64 -65 -66 -67+59 +60 +61 +62 +63
# File 'lib/jwt/jwa/ecdsa.rb', line 63 +# File 'lib/jwt/jwa/ecdsa.rb', line 59 def self.curve_by_name(name) NAMED_CURVES.fetch(name) do @@ -394,36 +372,6 @@
- - - -59 -60 -61- |
-
- # File 'lib/jwt/jwa/ecdsa.rb', line 59 - -def self.from_algorithm(algorithm) - new(algorithm, algorithm.downcase.gsub('es', 'sha')) -end- |
-
-13 -14 -15 -16+9 +10 +11 +12
# File 'lib/jwt/jwa/hmac.rb', line 13 +# File 'lib/jwt/jwa/hmac.rb', line 9 def initialize(alg, digest) @alg = alg @@ -309,42 +278,6 @@-
--Class Method Details
- - --- -- - .from_algorithm(algorithm) ⇒ Object - - - - - -
-
-- -- -- - -9 -10 -11-- -# File 'lib/jwt/jwa/hmac.rb', line 9 - -def self.from_algorithm(algorithm) - new(algorithm, OpenSSL::Digest.new(algorithm.downcase.gsub('hs', 'sha'))) -end-Instance Method Details
@@ -364,19 +297,19 @@
+14 +15 +16 +17 18 19 20 21 22 -23 -24 -25 -26 -27+23
# File 'lib/jwt/jwa/hmac.rb', line 18 +# File 'lib/jwt/jwa/hmac.rb', line 14 def sign(data:, signing_key:) signing_key ||= '' @@ -408,12 +341,12 @@
-29 -30 -31+25 +26 +27
# File 'lib/jwt/jwa/hmac.rb', line 29 +# File 'lib/jwt/jwa/hmac.rb', line 25 def verify(data:, signature:, verification_key:) SecurityUtils.secure_compare(signature, sign(data: data, signing_key: verification_key)) @@ -428,7 +361,7 @@diff --git a/JWT/JWA/Hmac/SecurityUtils.html b/JWT/JWA/Hmac/SecurityUtils.html index ab3d2de1..24c6ecc8 100644 --- a/JWT/JWA/Hmac/SecurityUtils.html +++ b/JWT/JWA/Hmac/SecurityUtils.html @@ -205,12 +205,12 @@
-55 -56 -57+51 +52 +53
# File 'lib/jwt/jwa/hmac.rb', line 55 +# File 'lib/jwt/jwa/hmac.rb', line 51 def fixed_length_secure_compare(a, b) OpenSSL.fixed_length_secure_compare(a, b) @@ -248,12 +248,12 @@
-74 -75 -76+70 +71 +72
# File 'lib/jwt/jwa/hmac.rb', line 74 +# File 'lib/jwt/jwa/hmac.rb', line 70 def secure_compare(a, b) a.bytesize == b.bytesize && fixed_length_secure_compare(a, b) @@ -268,7 +268,7 @@diff --git a/JWT/JWA/None.html b/JWT/JWA/None.html index 94f96846..0cac8794 100644 --- a/JWT/JWA/None.html +++ b/JWT/JWA/None.html @@ -335,7 +335,7 @@
diff --git a/JWT/JWA/Ps.html b/JWT/JWA/Ps.html index 9abe4a31..1d86e6ea 100644 --- a/JWT/JWA/Ps.html +++ b/JWT/JWA/Ps.html @@ -347,7 +347,7 @@
diff --git a/JWT/JWA/Rsa.html b/JWT/JWA/Rsa.html index ffd455a9..e9b1fe81 100644 --- a/JWT/JWA/Rsa.html +++ b/JWT/JWA/Rsa.html @@ -347,7 +347,7 @@
diff --git a/JWT/JWA/SigningAlgorithm.html b/JWT/JWA/SigningAlgorithm.html index ccd52bf4..b6a45f18 100644 --- a/JWT/JWA/SigningAlgorithm.html +++ b/JWT/JWA/SigningAlgorithm.html @@ -554,7 +554,7 @@
diff --git a/JWT/JWA/SigningAlgorithm/ClassMethods.html b/JWT/JWA/SigningAlgorithm/ClassMethods.html index 10ae9c53..bfd129f8 100644 --- a/JWT/JWA/SigningAlgorithm/ClassMethods.html +++ b/JWT/JWA/SigningAlgorithm/ClassMethods.html @@ -175,7 +175,7 @@
diff --git a/JWT/JWA/Unsupported.html b/JWT/JWA/Unsupported.html index 18dbbf75..3e1da504 100644 --- a/JWT/JWA/Unsupported.html +++ b/JWT/JWA/Unsupported.html @@ -270,7 +270,7 @@
diff --git a/JWT/JWK.html b/JWT/JWK.html index df513d2e..ff6bbebe 100644 --- a/JWT/JWK.html +++ b/JWT/JWK.html @@ -269,7 +269,7 @@
diff --git a/JWT/JWK/EC.html b/JWT/JWK/EC.html index 1e31fb05..d271c278 100644 --- a/JWT/JWK/EC.html +++ b/JWT/JWK/EC.html @@ -561,12 +561,12 @@
-231 -232 -233+227 +228 +229
# File 'lib/jwt/jwk/ec.rb', line 231 +# File 'lib/jwt/jwk/ec.rb', line 227 def import(jwk_data) new(jwk_data) @@ -591,6 +591,10 @@
+231 +232 +233 +234 235 236 237 @@ -598,14 +602,10 @@+242239 240 241 -242 -243 -244 -245 -246
# File 'lib/jwt/jwk/ec.rb', line 235 +# File 'lib/jwt/jwk/ec.rb', line 231 def to_openssl_curve(crv) # The JWK specs and OpenSSL use different names for the same curves. @@ -963,7 +963,7 @@diff --git a/JWT/JWK/HMAC.html b/JWT/JWK/HMAC.html index 0aa5fdf0..ac01321f 100644 --- a/JWT/JWK/HMAC.html +++ b/JWT/JWK/HMAC.html @@ -883,7 +883,7 @@
diff --git a/JWT/JWK/KeyBase.html b/JWT/JWK/KeyBase.html index c7598488..57380c26 100644 --- a/JWT/JWK/KeyBase.html +++ b/JWT/JWK/KeyBase.html @@ -554,7 +554,7 @@
diff --git a/JWT/JWK/KeyFinder.html b/JWT/JWK/KeyFinder.html index f999c712..d10b140b 100644 --- a/JWT/JWK/KeyFinder.html +++ b/JWT/JWK/KeyFinder.html @@ -478,7 +478,7 @@
diff --git a/JWT/JWK/KidAsKeyDigest.html b/JWT/JWK/KidAsKeyDigest.html index 235ff4ad..e620cdcd 100644 --- a/JWT/JWK/KidAsKeyDigest.html +++ b/JWT/JWK/KidAsKeyDigest.html @@ -281,7 +281,7 @@
diff --git a/JWT/JWK/RSA.html b/JWT/JWK/RSA.html index 78f347b5..cd8b5ebd 100644 --- a/JWT/JWK/RSA.html +++ b/JWT/JWK/RSA.html @@ -218,7 +218,7 @@
-@@ -329,7 +329,9 @@rubocop:disable Metrics/AbcSize.
+:nocov: Before openssl 2.0, we need to use the accessors to set the key.
- +
+@@ -664,7 +666,7 @@:nocov:.
+
-@@ -678,8 +680,6 @@rubocop:disable Metrics/AbcSize
+:nocov: Before openssl 2.0, we need to use the accessors to set the key
-168 -169 170 171 172 @@ -691,10 +691,12 @@+181 +182 +183178 179 180 -181
# File 'lib/jwt/jwk/rsa.rb', line 168 +# File 'lib/jwt/jwk/rsa.rb', line 170 def create_rsa_key_using_accessors(rsa_parameters) # rubocop:disable Metrics/AbcSize validate_rsa_parameters!(rsa_parameters) @@ -891,6 +893,8 @@
@@ -916,17 +920,17 @@+:nocov:
+
-183 -184 -185 186 187 188 189 -190+190 +191 +192 +193
# File 'lib/jwt/jwk/rsa.rb', line 183 +# File 'lib/jwt/jwk/rsa.rb', line 186 def validate_rsa_parameters!(rsa_parameters) return unless rsa_parameters.key?(:d) @@ -1278,7 +1282,7 @@diff --git a/JWT/JWK/Set.html b/JWT/JWK/Set.html index 0746501c..a52f46e2 100644 --- a/JWT/JWK/Set.html +++ b/JWT/JWK/Set.html @@ -784,7 +784,7 @@
diff --git a/JWT/JWK/Thumbprint.html b/JWT/JWK/Thumbprint.html index ecafc5ea..bad473be 100644 --- a/JWT/JWK/Thumbprint.html +++ b/JWT/JWK/Thumbprint.html @@ -362,7 +362,7 @@
diff --git a/JWT/JWKError.html b/JWT/JWKError.html index 0e2f32fc..bcac6bcf 100644 --- a/JWT/JWKError.html +++ b/JWT/JWKError.html @@ -133,7 +133,7 @@
Overview
diff --git a/JWT/MissingRequiredClaim.html b/JWT/MissingRequiredClaim.html index 143441dd..d5e25aa0 100644 --- a/JWT/MissingRequiredClaim.html +++ b/JWT/MissingRequiredClaim.html @@ -133,7 +133,7 @@Overview
diff --git a/JWT/RequiredDependencyError.html b/JWT/RequiredDependencyError.html index a50d70a7..44d4fc89 100644 --- a/JWT/RequiredDependencyError.html +++ b/JWT/RequiredDependencyError.html @@ -125,7 +125,7 @@Overview
diff --git a/JWT/Token.html b/JWT/Token.html index 32e67ce7..819be582 100644 --- a/JWT/Token.html +++ b/JWT/Token.html @@ -1487,7 +1487,7 @@diff --git a/JWT/UnsupportedEcdsaCurve.html b/JWT/UnsupportedEcdsaCurve.html index 000032ee..05a4e19d 100644 --- a/JWT/UnsupportedEcdsaCurve.html +++ b/JWT/UnsupportedEcdsaCurve.html @@ -141,7 +141,7 @@
Overview
diff --git a/JWT/VERSION.html b/JWT/VERSION.html index a35dcd02..69669a87 100644 --- a/JWT/VERSION.html +++ b/JWT/VERSION.html @@ -209,7 +209,7 @@diff --git a/JWT/VerificationError.html b/JWT/VerificationError.html index 569f8d17..a1751646 100644 --- a/JWT/VerificationError.html +++ b/JWT/VerificationError.html @@ -133,7 +133,7 @@
Overview
diff --git a/JWT/X5cKeyFinder.html b/JWT/X5cKeyFinder.html index b8832ecf..20372474 100644 --- a/JWT/X5cKeyFinder.html +++ b/JWT/X5cKeyFinder.html @@ -303,7 +303,7 @@diff --git a/_index.html b/_index.html index bda4497e..5eba725d 100644 --- a/_index.html +++ b/_index.html @@ -699,7 +699,7 @@
Namespace Listing A-Z
diff --git a/file.CHANGELOG.html b/file.CHANGELOG.html index 96dd2b15..1831953a 100644 --- a/file.CHANGELOG.html +++ b/file.CHANGELOG.html @@ -1235,7 +1235,7 @@- Generated on Sun Dec 29 17:02:37 2024 by + Generated on Sun Dec 29 18:33:21 2024 by yard 0.9.37 (ruby-3.4.1). diff --git a/file.CONTRIBUTING.html b/file.CONTRIBUTING.html index 847bd9a3..9d3bcf66 100644 --- a/file.CONTRIBUTING.html +++ b/file.CONTRIBUTING.html @@ -152,7 +152,7 @@
Releasing a new version
diff --git a/file.LICENSE.html b/file.LICENSE.html index 92958f78..723cc957 100644 --- a/file.LICENSE.html +++ b/file.LICENSE.html @@ -68,7 +68,7 @@ diff --git a/file.README.html b/file.README.html index 43d0d0d3..9295119c 100644 --- a/file.README.html +++ b/file.README.html @@ -865,7 +865,7 @@License
diff --git a/file.UPGRADING.html b/file.UPGRADING.html index 1100c188..a35b92fb 100644 --- a/file.UPGRADING.html +++ b/file.UPGRADING.html @@ -111,7 +111,7 @@Base64 the `k´ value for HMAC JWKs
diff --git a/index.html b/index.html index c332e8e8..f47f5770 100644 --- a/index.html +++ b/index.html @@ -865,7 +865,7 @@License
diff --git a/method_list.html b/method_list.html index 87518d38..332ebaac 100644 --- a/method_list.html +++ b/method_list.html @@ -391,22 +391,6 @@Method List
-