From bb7cac81405ddb2f65f3c9354342ec8b7718ae5a Mon Sep 17 00:00:00 2001 From: anakinj Date: Sat, 28 Dec 2024 13:18:22 +0000 Subject: [PATCH] deploy: 0ca59720f7f30672c98087593ab7688cff90afa4 --- JWT.html | 4 +- JWT/Base64.html | 2 +- JWT/Base64DecodeError.html | 2 +- JWT/Claims.html | 2 +- JWT/Claims/Audience.html | 2 +- JWT/Claims/Crit.html | 2 +- JWT/Claims/DecodeVerifier.html | 2 +- JWT/Claims/Error.html | 2 +- JWT/Claims/Expiration.html | 2 +- JWT/Claims/IssuedAt.html | 2 +- JWT/Claims/Issuer.html | 2 +- JWT/Claims/JwtId.html | 2 +- JWT/Claims/NotBefore.html | 2 +- JWT/Claims/Numeric.html | 2 +- JWT/Claims/Numeric/Compat.html | 2 +- JWT/Claims/Required.html | 2 +- JWT/Claims/Subject.html | 2 +- JWT/Claims/VerificationContext.html | 2 +- JWT/Claims/Verifier.html | 2 +- JWT/ClaimsValidator.html | 2 +- JWT/Configuration.html | 2 +- JWT/Configuration/Container.html | 2 +- JWT/Configuration/DecodeConfiguration.html | 2 +- JWT/Configuration/JwkConfiguration.html | 2 +- JWT/Decode.html | 2 +- JWT/DecodeError.html | 2 +- JWT/Deprecations.html | 2 +- JWT/Encode.html | 2 +- JWT/EncodeError.html | 2 +- JWT/EncodedToken.html | 2 +- JWT/EncodedToken/ClaimsContext.html | 2 +- JWT/ExpiredSignature.html | 2 +- JWT/ImmatureSignature.html | 2 +- JWT/IncorrectAlgorithm.html | 2 +- JWT/InvalidAudError.html | 2 +- JWT/InvalidCritError.html | 2 +- JWT/InvalidIatError.html | 2 +- JWT/InvalidIssuerError.html | 2 +- JWT/InvalidJtiError.html | 2 +- JWT/InvalidPayload.html | 2 +- JWT/InvalidSubError.html | 2 +- JWT/JSON.html | 2 +- JWT/JWA.html | 42 +- JWT/JWA/Compat.html | 2 +- JWT/JWA/Compat/ClassMethods.html | 2 +- JWT/JWA/Ecdsa.html | 2 +- JWT/JWA/Eddsa.html | 2 +- JWT/JWA/Hmac.html | 2 +- JWT/JWA/Hmac/SecurityUtils.html | 2 +- JWT/JWA/HmacRbNaCl.html | 422 ------------------- JWT/JWA/HmacRbNaClFixed.html | 456 --------------------- JWT/JWA/None.html | 2 +- JWT/JWA/Ps.html | 2 +- JWT/JWA/Rsa.html | 2 +- JWT/JWA/SigningAlgorithm.html | 4 +- JWT/JWA/SigningAlgorithm/ClassMethods.html | 2 +- JWT/JWA/Unsupported.html | 2 +- JWT/JWA/Wrapper.html | 2 +- JWT/JWK.html | 2 +- JWT/JWK/EC.html | 2 +- JWT/JWK/HMAC.html | 2 +- JWT/JWK/KeyBase.html | 2 +- JWT/JWK/KeyFinder.html | 2 +- JWT/JWK/KidAsKeyDigest.html | 2 +- JWT/JWK/OKPRbNaCl.html | 2 +- JWT/JWK/RSA.html | 2 +- JWT/JWK/Set.html | 2 +- JWT/JWK/Thumbprint.html | 2 +- JWT/JWKError.html | 2 +- JWT/MissingRequiredClaim.html | 2 +- JWT/RequiredDependencyError.html | 2 +- JWT/Token.html | 2 +- JWT/UnsupportedEcdsaCurve.html | 2 +- JWT/VERSION.html | 2 +- JWT/VerificationError.html | 2 +- JWT/Verify.html | 2 +- JWT/X5cKeyFinder.html | 2 +- _index.html | 16 +- class_list.html | 2 +- file.README.html | 2 +- index.html | 2 +- method_list.html | 70 +--- top-level-namespace.html | 2 +- 83 files changed, 105 insertions(+), 1061 deletions(-) delete mode 100644 JWT/JWA/HmacRbNaCl.html delete mode 100644 JWT/JWA/HmacRbNaClFixed.html diff --git a/JWT.html b/JWT.html index 07931112..1d1430a9 100644 --- a/JWT.html +++ b/JWT.html @@ -84,7 +84,7 @@
Defined in:
lib/jwt.rb,
- lib/jwt/jwa.rb,
lib/jwt/jwk.rb,
lib/jwt/json.rb,
lib/jwt/error.rb,
lib/jwt/token.rb,
lib/jwt/base64.rb,
lib/jwt/claims.rb,
lib/jwt/decode.rb,
lib/jwt/encode.rb,
lib/jwt/jwa/ps.rb,
lib/jwt/jwk/ec.rb,
lib/jwt/verify.rb,
lib/jwt/jwa/rsa.rb,
lib/jwt/jwk/rsa.rb,
lib/jwt/jwk/set.rb,
lib/jwt/version.rb,
lib/jwt/jwa/hmac.rb,
lib/jwt/jwa/none.rb,
lib/jwt/jwk/hmac.rb,
lib/jwt/jwa/ecdsa.rb,
lib/jwt/jwa/eddsa.rb,
lib/jwt/jwa/compat.rb,
lib/jwt/claims/crit.rb,
lib/jwt/jwa/wrapper.rb,
lib/jwt/deprecations.rb,
lib/jwt/jwk/key_base.rb,
lib/jwt/claims/issuer.rb,
lib/jwt/claims/jwt_id.rb,
lib/jwt/configuration.rb,
lib/jwt/encoded_token.rb,
lib/jwt/claims/numeric.rb,
lib/jwt/claims/subject.rb,
lib/jwt/jwk/key_finder.rb,
lib/jwt/jwk/okp_rbnacl.rb,
lib/jwt/jwk/thumbprint.rb,
lib/jwt/x5c_key_finder.rb,
lib/jwt/claims/audience.rb,
lib/jwt/claims/required.rb,
lib/jwt/claims/verifier.rb,
lib/jwt/jwa/hmac_rbnacl.rb,
lib/jwt/jwa/unsupported.rb,
lib/jwt/claims/issued_at.rb,
lib/jwt/claims_validator.rb,
lib/jwt/claims/expiration.rb,
lib/jwt/claims/not_before.rb,
lib/jwt/jwa/hmac_rbnacl_fixed.rb,
lib/jwt/jwa/signing_algorithm.rb,
lib/jwt/jwk/kid_as_key_digest.rb,
lib/jwt/claims/decode_verifier.rb,
lib/jwt/configuration/container.rb,
lib/jwt/configuration/jwk_configuration.rb,
lib/jwt/configuration/decode_configuration.rb
+ lib/jwt/jwa.rb,
lib/jwt/jwk.rb,
lib/jwt/json.rb,
lib/jwt/error.rb,
lib/jwt/token.rb,
lib/jwt/base64.rb,
lib/jwt/claims.rb,
lib/jwt/decode.rb,
lib/jwt/encode.rb,
lib/jwt/jwa/ps.rb,
lib/jwt/jwk/ec.rb,
lib/jwt/verify.rb,
lib/jwt/jwa/rsa.rb,
lib/jwt/jwk/rsa.rb,
lib/jwt/jwk/set.rb,
lib/jwt/version.rb,
lib/jwt/jwa/hmac.rb,
lib/jwt/jwa/none.rb,
lib/jwt/jwk/hmac.rb,
lib/jwt/jwa/ecdsa.rb,
lib/jwt/jwa/eddsa.rb,
lib/jwt/jwa/compat.rb,
lib/jwt/claims/crit.rb,
lib/jwt/jwa/wrapper.rb,
lib/jwt/deprecations.rb,
lib/jwt/jwk/key_base.rb,
lib/jwt/claims/issuer.rb,
lib/jwt/claims/jwt_id.rb,
lib/jwt/configuration.rb,
lib/jwt/encoded_token.rb,
lib/jwt/claims/numeric.rb,
lib/jwt/claims/subject.rb,
lib/jwt/jwk/key_finder.rb,
lib/jwt/jwk/okp_rbnacl.rb,
lib/jwt/jwk/thumbprint.rb,
lib/jwt/x5c_key_finder.rb,
lib/jwt/claims/audience.rb,
lib/jwt/claims/required.rb,
lib/jwt/claims/verifier.rb,
lib/jwt/jwa/unsupported.rb,
lib/jwt/claims/issued_at.rb,
lib/jwt/claims_validator.rb,
lib/jwt/claims/expiration.rb,
lib/jwt/claims/not_before.rb,
lib/jwt/jwa/signing_algorithm.rb,
lib/jwt/jwk/kid_as_key_digest.rb,
lib/jwt/claims/decode_verifier.rb,
lib/jwt/configuration/container.rb,
lib/jwt/configuration/jwk_configuration.rb,
lib/jwt/configuration/decode_configuration.rb
@@ -999,7 +999,7 @@

diff --git a/JWT/Base64.html b/JWT/Base64.html index 2ee54668..3b31e09d 100644 --- a/JWT/Base64.html +++ b/JWT/Base64.html @@ -362,7 +362,7 @@

diff --git a/JWT/Base64DecodeError.html b/JWT/Base64DecodeError.html index 6d5e149a..9b7b5f06 100644 --- a/JWT/Base64DecodeError.html +++ b/JWT/Base64DecodeError.html @@ -133,7 +133,7 @@

Overview

diff --git a/JWT/Claims.html b/JWT/Claims.html index 4bb825bf..643e3698 100644 --- a/JWT/Claims.html +++ b/JWT/Claims.html @@ -558,7 +558,7 @@

Examples:

diff --git a/JWT/Claims/Audience.html b/JWT/Claims/Audience.html index 1c88f9f7..a862ff0a 100644 --- a/JWT/Claims/Audience.html +++ b/JWT/Claims/Audience.html @@ -364,7 +364,7 @@

diff --git a/JWT/Claims/Crit.html b/JWT/Claims/Crit.html index 0353280e..5bb43f0a 100644 --- a/JWT/Claims/Crit.html +++ b/JWT/Claims/Crit.html @@ -374,7 +374,7 @@

diff --git a/JWT/Claims/DecodeVerifier.html b/JWT/Claims/DecodeVerifier.html index 6e766874..e57f9937 100644 --- a/JWT/Claims/DecodeVerifier.html +++ b/JWT/Claims/DecodeVerifier.html @@ -202,7 +202,7 @@

diff --git a/JWT/Claims/Error.html b/JWT/Claims/Error.html index 3d3081f5..60f1dbdf 100644 --- a/JWT/Claims/Error.html +++ b/JWT/Claims/Error.html @@ -223,7 +223,7 @@

diff --git a/JWT/Claims/Expiration.html b/JWT/Claims/Expiration.html index 521058e7..35a0de81 100644 --- a/JWT/Claims/Expiration.html +++ b/JWT/Claims/Expiration.html @@ -368,7 +368,7 @@

diff --git a/JWT/Claims/IssuedAt.html b/JWT/Claims/IssuedAt.html index ad1bce06..b066f658 100644 --- a/JWT/Claims/IssuedAt.html +++ b/JWT/Claims/IssuedAt.html @@ -279,7 +279,7 @@

diff --git a/JWT/Claims/Issuer.html b/JWT/Claims/Issuer.html index 7b359ce3..dcd4c794 100644 --- a/JWT/Claims/Issuer.html +++ b/JWT/Claims/Issuer.html @@ -372,7 +372,7 @@

diff --git a/JWT/Claims/JwtId.html b/JWT/Claims/JwtId.html index b7321c05..c1f8856f 100644 --- a/JWT/Claims/JwtId.html +++ b/JWT/Claims/JwtId.html @@ -374,7 +374,7 @@

diff --git a/JWT/Claims/NotBefore.html b/JWT/Claims/NotBefore.html index dcfe5782..589fbfaa 100644 --- a/JWT/Claims/NotBefore.html +++ b/JWT/Claims/NotBefore.html @@ -368,7 +368,7 @@

diff --git a/JWT/Claims/Numeric.html b/JWT/Claims/Numeric.html index e4c4169d..f55aecdc 100644 --- a/JWT/Claims/Numeric.html +++ b/JWT/Claims/Numeric.html @@ -488,7 +488,7 @@

diff --git a/JWT/Claims/Numeric/Compat.html b/JWT/Claims/Numeric/Compat.html index dcd598c3..129189e8 100644 --- a/JWT/Claims/Numeric/Compat.html +++ b/JWT/Claims/Numeric/Compat.html @@ -283,7 +283,7 @@

diff --git a/JWT/Claims/Required.html b/JWT/Claims/Required.html index 01fc3b70..76ab9638 100644 --- a/JWT/Claims/Required.html +++ b/JWT/Claims/Required.html @@ -370,7 +370,7 @@

diff --git a/JWT/Claims/Subject.html b/JWT/Claims/Subject.html index 23c93534..351c9f4e 100644 --- a/JWT/Claims/Subject.html +++ b/JWT/Claims/Subject.html @@ -364,7 +364,7 @@

diff --git a/JWT/Claims/VerificationContext.html b/JWT/Claims/VerificationContext.html index 64d40aae..2a96e575 100644 --- a/JWT/Claims/VerificationContext.html +++ b/JWT/Claims/VerificationContext.html @@ -227,7 +227,7 @@

diff --git a/JWT/Claims/Verifier.html b/JWT/Claims/Verifier.html index cbd33a28..382be1ad 100644 --- a/JWT/Claims/Verifier.html +++ b/JWT/Claims/Verifier.html @@ -273,7 +273,7 @@

diff --git a/JWT/ClaimsValidator.html b/JWT/ClaimsValidator.html index 38f89c59..91ac9b27 100644 --- a/JWT/ClaimsValidator.html +++ b/JWT/ClaimsValidator.html @@ -284,7 +284,7 @@

diff --git a/JWT/Configuration.html b/JWT/Configuration.html index cdfe4bff..408c320f 100644 --- a/JWT/Configuration.html +++ b/JWT/Configuration.html @@ -326,7 +326,7 @@

diff --git a/JWT/Configuration/Container.html b/JWT/Configuration/Container.html index b9121aef..de1c15eb 100644 --- a/JWT/Configuration/Container.html +++ b/JWT/Configuration/Container.html @@ -619,7 +619,7 @@

diff --git a/JWT/Configuration/DecodeConfiguration.html b/JWT/Configuration/DecodeConfiguration.html index 62f6646b..891aec0d 100644 --- a/JWT/Configuration/DecodeConfiguration.html +++ b/JWT/Configuration/DecodeConfiguration.html @@ -1331,7 +1331,7 @@

diff --git a/JWT/Configuration/JwkConfiguration.html b/JWT/Configuration/JwkConfiguration.html index a88ec175..50123316 100644 --- a/JWT/Configuration/JwkConfiguration.html +++ b/JWT/Configuration/JwkConfiguration.html @@ -375,7 +375,7 @@

diff --git a/JWT/Decode.html b/JWT/Decode.html index 6ff7f3a4..f564f8c5 100644 --- a/JWT/Decode.html +++ b/JWT/Decode.html @@ -423,7 +423,7 @@

diff --git a/JWT/DecodeError.html b/JWT/DecodeError.html index b0bee852..d3259832 100644 --- a/JWT/DecodeError.html +++ b/JWT/DecodeError.html @@ -129,7 +129,7 @@

Direct Known Subclasses

diff --git a/JWT/Deprecations.html b/JWT/Deprecations.html index 7be79af8..48b509bb 100644 --- a/JWT/Deprecations.html +++ b/JWT/Deprecations.html @@ -415,7 +415,7 @@

diff --git a/JWT/Encode.html b/JWT/Encode.html index 396e539a..c94bdf24 100644 --- a/JWT/Encode.html +++ b/JWT/Encode.html @@ -382,7 +382,7 @@

diff --git a/JWT/EncodeError.html b/JWT/EncodeError.html index 5409f492..cec4d703 100644 --- a/JWT/EncodeError.html +++ b/JWT/EncodeError.html @@ -125,7 +125,7 @@

Overview

diff --git a/JWT/EncodedToken.html b/JWT/EncodedToken.html index c28f2c8b..0d78ad05 100644 --- a/JWT/EncodedToken.html +++ b/JWT/EncodedToken.html @@ -1851,7 +1851,7 @@

diff --git a/JWT/EncodedToken/ClaimsContext.html b/JWT/EncodedToken/ClaimsContext.html index a6f01e44..6390cb33 100644 --- a/JWT/EncodedToken/ClaimsContext.html +++ b/JWT/EncodedToken/ClaimsContext.html @@ -268,7 +268,7 @@

diff --git a/JWT/ExpiredSignature.html b/JWT/ExpiredSignature.html index 97632b9b..7a498afd 100644 --- a/JWT/ExpiredSignature.html +++ b/JWT/ExpiredSignature.html @@ -133,7 +133,7 @@

Overview

diff --git a/JWT/ImmatureSignature.html b/JWT/ImmatureSignature.html index 3cdf6f6a..a09cd87f 100644 --- a/JWT/ImmatureSignature.html +++ b/JWT/ImmatureSignature.html @@ -133,7 +133,7 @@

Overview

diff --git a/JWT/IncorrectAlgorithm.html b/JWT/IncorrectAlgorithm.html index 47d278ce..52e817cf 100644 --- a/JWT/IncorrectAlgorithm.html +++ b/JWT/IncorrectAlgorithm.html @@ -137,7 +137,7 @@

Direct Known Subclasses

diff --git a/JWT/InvalidAudError.html b/JWT/InvalidAudError.html index 4530bc23..cabc8b08 100644 --- a/JWT/InvalidAudError.html +++ b/JWT/InvalidAudError.html @@ -133,7 +133,7 @@

Overview

diff --git a/JWT/InvalidCritError.html b/JWT/InvalidCritError.html index 3e6287d1..3c7f0a27 100644 --- a/JWT/InvalidCritError.html +++ b/JWT/InvalidCritError.html @@ -133,7 +133,7 @@

Overview

diff --git a/JWT/InvalidIatError.html b/JWT/InvalidIatError.html index b5274595..b257cab5 100644 --- a/JWT/InvalidIatError.html +++ b/JWT/InvalidIatError.html @@ -133,7 +133,7 @@

Overview

diff --git a/JWT/InvalidIssuerError.html b/JWT/InvalidIssuerError.html index 02503e43..4e767f33 100644 --- a/JWT/InvalidIssuerError.html +++ b/JWT/InvalidIssuerError.html @@ -133,7 +133,7 @@

Overview

diff --git a/JWT/InvalidJtiError.html b/JWT/InvalidJtiError.html index 433b7aa2..e984e5f3 100644 --- a/JWT/InvalidJtiError.html +++ b/JWT/InvalidJtiError.html @@ -133,7 +133,7 @@

Overview

diff --git a/JWT/InvalidPayload.html b/JWT/InvalidPayload.html index 28fc83b9..da9cd8c6 100644 --- a/JWT/InvalidPayload.html +++ b/JWT/InvalidPayload.html @@ -133,7 +133,7 @@

Overview

diff --git a/JWT/InvalidSubError.html b/JWT/InvalidSubError.html index deca6d57..14ddfb7e 100644 --- a/JWT/InvalidSubError.html +++ b/JWT/InvalidSubError.html @@ -133,7 +133,7 @@

Overview

diff --git a/JWT/JSON.html b/JWT/JSON.html index 45fdeb2b..82d5d39a 100644 --- a/JWT/JSON.html +++ b/JWT/JSON.html @@ -271,7 +271,7 @@

diff --git a/JWT/JWA.html b/JWT/JWA.html index cdb65d3a..1ec8564d 100644 --- a/JWT/JWA.html +++ b/JWT/JWA.html @@ -79,7 +79,7 @@
Defined in:
lib/jwt/jwa.rb,
- lib/jwt/jwa/ps.rb,
lib/jwt/jwa/rsa.rb,
lib/jwt/jwa/hmac.rb,
lib/jwt/jwa/none.rb,
lib/jwt/jwa/ecdsa.rb,
lib/jwt/jwa/eddsa.rb,
lib/jwt/jwa/compat.rb,
lib/jwt/jwa/wrapper.rb,
lib/jwt/jwa/hmac_rbnacl.rb,
lib/jwt/jwa/unsupported.rb,
lib/jwt/jwa/hmac_rbnacl_fixed.rb,
lib/jwt/jwa/signing_algorithm.rb
+ lib/jwt/jwa/ps.rb,
lib/jwt/jwa/rsa.rb,
lib/jwt/jwa/hmac.rb,
lib/jwt/jwa/none.rb,
lib/jwt/jwa/ecdsa.rb,
lib/jwt/jwa/eddsa.rb,
lib/jwt/jwa/compat.rb,
lib/jwt/jwa/wrapper.rb,
lib/jwt/jwa/unsupported.rb,
lib/jwt/jwa/signing_algorithm.rb
@@ -104,7 +104,7 @@

Overview

- Classes: Ecdsa, Eddsa, Hmac, HmacRbNaCl, HmacRbNaClFixed, None, Ps, Rsa, Wrapper + Classes: Ecdsa, Eddsa, Hmac, None, Ps, Rsa, Wrapper

@@ -271,13 +271,13 @@

 
 
-52
-53
-54
-55
+46 +47 +48 +49 -
# File 'lib/jwt/jwa.rb', line 52
+      
# File 'lib/jwt/jwa.rb', line 46
 
 def create(algorithm)
   Deprecations.warning('The ::JWT::JWA.create method is deprecated and will be removed in the next major version of ruby-jwt.')
@@ -376,19 +376,19 @@ 

 
 
+28
+29
+30
+31
+32
+33
 34
 35
 36
-37
-38
-39
-40
-41
-42
-43
+37

-
# File 'lib/jwt/jwa.rb', line 34
+      
# File 'lib/jwt/jwa.rb', line 28
 
 def resolve(algorithm)
   return find(algorithm) if algorithm.is_a?(String) || algorithm.is_a?(Symbol)
@@ -433,13 +433,13 @@ 

 
 
-46
-47
-48
-49
+40 +41 +42 +43

-
# File 'lib/jwt/jwa.rb', line 46
+      
# File 'lib/jwt/jwa.rb', line 40
 
 def resolve_and_sort(algorithms:, preferred_algorithm:)
   algs = Array(algorithms).map { |alg| JWA.resolve(alg) }
@@ -455,7 +455,7 @@ 

diff --git a/JWT/JWA/Compat.html b/JWT/JWA/Compat.html index 4dbc45c0..cbc8acf9 100644 --- a/JWT/JWA/Compat.html +++ b/JWT/JWA/Compat.html @@ -202,7 +202,7 @@

diff --git a/JWT/JWA/Compat/ClassMethods.html b/JWT/JWA/Compat/ClassMethods.html index 06c3f200..d9c32a22 100644 --- a/JWT/JWA/Compat/ClassMethods.html +++ b/JWT/JWA/Compat/ClassMethods.html @@ -328,7 +328,7 @@

diff --git a/JWT/JWA/Ecdsa.html b/JWT/JWA/Ecdsa.html index 0b585dad..f2979b89 100644 --- a/JWT/JWA/Ecdsa.html +++ b/JWT/JWA/Ecdsa.html @@ -539,7 +539,7 @@

diff --git a/JWT/JWA/Eddsa.html b/JWT/JWA/Eddsa.html index 7c6a3d9e..c91e8296 100644 --- a/JWT/JWA/Eddsa.html +++ b/JWT/JWA/Eddsa.html @@ -355,7 +355,7 @@

diff --git a/JWT/JWA/Hmac.html b/JWT/JWA/Hmac.html index 70b8ba8f..02ffa9de 100644 --- a/JWT/JWA/Hmac.html +++ b/JWT/JWA/Hmac.html @@ -428,7 +428,7 @@

diff --git a/JWT/JWA/Hmac/SecurityUtils.html b/JWT/JWA/Hmac/SecurityUtils.html index d030128b..cb39dbba 100644 --- a/JWT/JWA/Hmac/SecurityUtils.html +++ b/JWT/JWA/Hmac/SecurityUtils.html @@ -268,7 +268,7 @@

diff --git a/JWT/JWA/HmacRbNaCl.html b/JWT/JWA/HmacRbNaCl.html deleted file mode 100644 index 70c8c858..00000000 --- a/JWT/JWA/HmacRbNaCl.html +++ /dev/null @@ -1,422 +0,0 @@ - - - - - - - Class: JWT::JWA::HmacRbNaCl - - — Documentation by YARD 0.9.37 - - - - - - - - - - - - - - - - - - - -
- - -

Class: JWT::JWA::HmacRbNaCl - - - -

-
- -
-
Inherits:
-
- Object - -
    -
  • Object
  • - - - -
- show all - -
-
- - - - - - -
-
Includes:
-
SigningAlgorithm
-
- - - - - - -
-
Defined in:
-
lib/jwt/jwa/hmac_rbnacl.rb
-
- -
- -

Overview

-
- -

Implementation of the HMAC family of algorithms (using RbNaCl)

- - -
-
-
- - -
- - - - - -

Instance Attribute Summary

- -

Attributes included from SigningAlgorithm

-

#alg

- - - -

- Class Method Summary - collapse -

- - - -

- Instance Method Summary - collapse -

- - - - - - - - - - - - - -

Methods included from SigningAlgorithm

-

#header, included, #raise_sign_error!, #raise_verify_error!, #valid_alg?

-
-

Constructor Details

- -
-

- - #initialize(alg, hmac) ⇒ HmacRbNaCl - - - - - -

-
- -

Returns a new instance of HmacRbNaCl.

- - -
-
-
- - -
- - - - -
-
-
-
-13
-14
-15
-16
-
-
# File 'lib/jwt/jwa/hmac_rbnacl.rb', line 13
-
-def initialize(alg, hmac)
-  @alg = alg
-  @hmac = hmac
-end
-
-
- -
- - -
-

Class Method Details

- - -
-

- - .from_algorithm(algorithm) ⇒ Object - - - - - -

- - - - -
-
-
-
-9
-10
-11
-
-
# File 'lib/jwt/jwa/hmac_rbnacl.rb', line 9
-
-def self.from_algorithm(algorithm)
-  new(algorithm, ::RbNaCl::HMAC.const_get(algorithm.upcase.gsub('HS', 'SHA')))
-end
-
-
- -
- -
-

Instance Method Details

- - -
-

- - #sign(data:, signing_key:) ⇒ Object - - - - - -

- - - - -
-
-
-
-18
-19
-20
-21
-
-
# File 'lib/jwt/jwa/hmac_rbnacl.rb', line 18
-
-def sign(data:, signing_key:)
-  Deprecations.warning("The use of the algorithm #{alg} is deprecated and will be removed in the next major version of ruby-jwt")
-  hmac.auth(key_for_rbnacl(hmac, signing_key).encode('binary'), data.encode('binary'))
-end
-
-
- -
-

- - #verify(data:, signature:, verification_key:) ⇒ Object - - - - - -

- - - - -
-
-
-
-23
-24
-25
-26
-27
-28
-
-
# File 'lib/jwt/jwa/hmac_rbnacl.rb', line 23
-
-def verify(data:, signature:, verification_key:)
-  Deprecations.warning("The use of the algorithm #{alg} is deprecated and will be removed in the next major version of ruby-jwt")
-  hmac.verify(key_for_rbnacl(hmac, verification_key).encode('binary'), signature.encode('binary'), data.encode('binary'))
-rescue ::RbNaCl::BadAuthenticatorError, ::RbNaCl::LengthError
-  false
-end
-
-
- -
- -
- - - -
- - \ No newline at end of file diff --git a/JWT/JWA/HmacRbNaClFixed.html b/JWT/JWA/HmacRbNaClFixed.html deleted file mode 100644 index 52d24bf7..00000000 --- a/JWT/JWA/HmacRbNaClFixed.html +++ /dev/null @@ -1,456 +0,0 @@ - - - - - - - Class: JWT::JWA::HmacRbNaClFixed - - — Documentation by YARD 0.9.37 - - - - - - - - - - - - - - - - - - - -
- - -

Class: JWT::JWA::HmacRbNaClFixed - - - -

-
- -
-
Inherits:
-
- Object - -
    -
  • Object
  • - - - -
- show all - -
-
- - - - - - -
-
Includes:
-
SigningAlgorithm
-
- - - - - - -
-
Defined in:
-
lib/jwt/jwa/hmac_rbnacl_fixed.rb
-
- -
- -

Overview

-
- -

Implementation of the HMAC family of algorithms (using RbNaCl prior to a certain version)

- - -
-
-
- - -
- - - - - -

Instance Attribute Summary

- -

Attributes included from SigningAlgorithm

-

#alg

- - - -

- Class Method Summary - collapse -

- - - -

- Instance Method Summary - collapse -

- - - - - - - - - - - - - -

Methods included from SigningAlgorithm

-

#header, included, #raise_sign_error!, #raise_verify_error!, #valid_alg?

-
-

Constructor Details

- -
-

- - #initialize(alg, hmac) ⇒ HmacRbNaClFixed - - - - - -

-
- -

Returns a new instance of HmacRbNaClFixed.

- - -
-
-
- - -
- - - - -
-
-
-
-13
-14
-15
-16
-
-
# File 'lib/jwt/jwa/hmac_rbnacl_fixed.rb', line 13
-
-def initialize(alg, hmac)
-  @alg = alg
-  @hmac = hmac
-end
-
-
- -
- - -
-

Class Method Details

- - -
-

- - .from_algorithm(algorithm) ⇒ Object - - - - - -

- - - - -
-
-
-
-9
-10
-11
-
-
# File 'lib/jwt/jwa/hmac_rbnacl_fixed.rb', line 9
-
-def self.from_algorithm(algorithm)
-  new(algorithm, ::RbNaCl::HMAC.const_get(algorithm.upcase.gsub('HS', 'SHA')))
-end
-
-
- -
- -
-

Instance Method Details

- - -
-

- - #sign(data:, signing_key:) ⇒ Object - - - - - -

-
- - -
-
-
- -

Raises:

- - -
- - - - -
-
-
-
-18
-19
-20
-21
-22
-23
-24
-
-
# File 'lib/jwt/jwa/hmac_rbnacl_fixed.rb', line 18
-
-def sign(data:, signing_key:)
-  signing_key ||= ''
-  Deprecations.warning("The use of the algorithm #{alg} is deprecated and will be removed in the next major version of ruby-jwt")
-  raise JWT::DecodeError, 'HMAC key expected to be a String' unless signing_key.is_a?(String)
-
-  hmac.auth(padded_key_bytes(signing_key, hmac.key_bytes), data.encode('binary'))
-end
-
-
- -
-

- - #verify(data:, signature:, verification_key:) ⇒ Object - - - - - -

- - - - -
-
-
-
-26
-27
-28
-29
-30
-31
-32
-33
-34
-
-
# File 'lib/jwt/jwa/hmac_rbnacl_fixed.rb', line 26
-
-def verify(data:, signature:, verification_key:)
-  verification_key ||= ''
-  Deprecations.warning("The use of the algorithm #{alg} is deprecated and will be removed in the next major version of ruby-jwt")
-  raise JWT::DecodeError, 'HMAC key expected to be a String' unless verification_key.is_a?(String)
-
-  hmac.verify(padded_key_bytes(verification_key, hmac.key_bytes), signature.encode('binary'), data.encode('binary'))
-rescue ::RbNaCl::BadAuthenticatorError, ::RbNaCl::LengthError
-  false
-end
-
-
- -
- -
- - - -
- - \ No newline at end of file diff --git a/JWT/JWA/None.html b/JWT/JWA/None.html index 7782e727..72d2c95e 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 986477cc..e5c1d7cd 100644 --- a/JWT/JWA/Ps.html +++ b/JWT/JWA/Ps.html @@ -345,7 +345,7 @@

diff --git a/JWT/JWA/Rsa.html b/JWT/JWA/Rsa.html index d1a14609..4415495e 100644 --- a/JWT/JWA/Rsa.html +++ b/JWT/JWA/Rsa.html @@ -345,7 +345,7 @@

diff --git a/JWT/JWA/SigningAlgorithm.html b/JWT/JWA/SigningAlgorithm.html index 305d8da5..145c7b9d 100644 --- a/JWT/JWA/SigningAlgorithm.html +++ b/JWT/JWA/SigningAlgorithm.html @@ -76,7 +76,7 @@
Included in:
-
Ecdsa, Eddsa, Hmac, HmacRbNaCl, HmacRbNaClFixed, None, Ps, Rsa, Unsupported, Wrapper
+
Ecdsa, Eddsa, Hmac, None, Ps, Rsa, Unsupported, Wrapper
@@ -623,7 +623,7 @@

diff --git a/JWT/JWA/SigningAlgorithm/ClassMethods.html b/JWT/JWA/SigningAlgorithm/ClassMethods.html index f986c47e..475fbcb2 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 726378ed..c5f51ca8 100644 --- a/JWT/JWA/Unsupported.html +++ b/JWT/JWA/Unsupported.html @@ -270,7 +270,7 @@

diff --git a/JWT/JWA/Wrapper.html b/JWT/JWA/Wrapper.html index 30b2bab5..f40be354 100644 --- a/JWT/JWA/Wrapper.html +++ b/JWT/JWA/Wrapper.html @@ -590,7 +590,7 @@

diff --git a/JWT/JWK.html b/JWT/JWK.html index 868c53d0..420a48f7 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 8e03fb15..5a84e901 100644 --- a/JWT/JWK/EC.html +++ b/JWT/JWK/EC.html @@ -963,7 +963,7 @@

diff --git a/JWT/JWK/HMAC.html b/JWT/JWK/HMAC.html index e54830c1..4854caaf 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 e9de7c86..ccde262c 100644 --- a/JWT/JWK/KeyBase.html +++ b/JWT/JWK/KeyBase.html @@ -623,7 +623,7 @@

diff --git a/JWT/JWK/KeyFinder.html b/JWT/JWK/KeyFinder.html index 4ae057cd..1c27371b 100644 --- a/JWT/JWK/KeyFinder.html +++ b/JWT/JWK/KeyFinder.html @@ -324,7 +324,7 @@

diff --git a/JWT/JWK/KidAsKeyDigest.html b/JWT/JWK/KidAsKeyDigest.html index 467ea571..a1444377 100644 --- a/JWT/JWK/KidAsKeyDigest.html +++ b/JWT/JWK/KidAsKeyDigest.html @@ -281,7 +281,7 @@

diff --git a/JWT/JWK/OKPRbNaCl.html b/JWT/JWK/OKPRbNaCl.html index 3d9b2772..d709c820 100644 --- a/JWT/JWK/OKPRbNaCl.html +++ b/JWT/JWK/OKPRbNaCl.html @@ -685,7 +685,7 @@

diff --git a/JWT/JWK/RSA.html b/JWT/JWK/RSA.html index 26681097..c1e85ee2 100644 --- a/JWT/JWK/RSA.html +++ b/JWT/JWK/RSA.html @@ -1278,7 +1278,7 @@

diff --git a/JWT/JWK/Set.html b/JWT/JWK/Set.html index 0c0bc134..38337f2a 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 4e315534..52ed7e82 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 ca3f5355..5dc087ee 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 f9c01c09..a91b3ba7 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 cfceffd6..326e0051 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 9432e0fe..e288a0a5 100644 --- a/JWT/Token.html +++ b/JWT/Token.html @@ -1487,7 +1487,7 @@

diff --git a/JWT/UnsupportedEcdsaCurve.html b/JWT/UnsupportedEcdsaCurve.html index 32759c72..fc3a65e1 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 cf88d3c2..03edccfe 100644 --- a/JWT/VERSION.html +++ b/JWT/VERSION.html @@ -209,7 +209,7 @@

diff --git a/JWT/VerificationError.html b/JWT/VerificationError.html index 336b3066..6897b3a2 100644 --- a/JWT/VerificationError.html +++ b/JWT/VerificationError.html @@ -133,7 +133,7 @@

Overview

diff --git a/JWT/Verify.html b/JWT/Verify.html index 9c3a4c88..8b551ef6 100644 --- a/JWT/Verify.html +++ b/JWT/Verify.html @@ -297,7 +297,7 @@

diff --git a/JWT/X5cKeyFinder.html b/JWT/X5cKeyFinder.html index d169401c..0bbe1c7c 100644 --- a/JWT/X5cKeyFinder.html +++ b/JWT/X5cKeyFinder.html @@ -303,7 +303,7 @@

diff --git a/_index.html b/_index.html index ca9f6c13..ee8a7fcf 100644 --- a/_index.html +++ b/_index.html @@ -323,20 +323,6 @@

Namespace Listing A-Z

-
  • - HmacRbNaCl - - (JWT::JWA) - -
  • - -
  • - HmacRbNaClFixed - - (JWT::JWA) - -
  • - @@ -787,7 +773,7 @@

    Namespace Listing A-Z

    diff --git a/class_list.html b/class_list.html index 4f984420..d373a3bd 100644 --- a/class_list.html +++ b/class_list.html @@ -46,7 +46,7 @@

    Class List

    diff --git a/file.README.html b/file.README.html index be80773c..2053884e 100644 --- a/file.README.html +++ b/file.README.html @@ -892,7 +892,7 @@

    License

    diff --git a/index.html b/index.html index b388f0f2..80b64cb3 100644 --- a/index.html +++ b/index.html @@ -892,7 +892,7 @@

    License

    diff --git a/method_list.html b/method_list.html index a37c22a6..573c6e6a 100644 --- a/method_list.html +++ b/method_list.html @@ -447,22 +447,6 @@

    Method List

    -
  • -
    - from_algorithm - JWT::JWA::HmacRbNaCl -
    -
  • - - -
  • -
    - from_algorithm - JWT::JWA::HmacRbNaClFixed -
    -
  • - -
  • gem_version @@ -823,15 +807,7 @@

    Method List

  • -
  • -
    - #initialize - JWT::JWA::HmacRbNaCl -
    -
  • - - -
  • +
  • #initialize JWT::ClaimsValidator @@ -839,7 +815,7 @@

    Method List

  • -
  • +
  • #initialize JWT::Claims::Expiration @@ -847,7 +823,7 @@

    Method List

  • -
  • +
  • #initialize JWT::Claims::NotBefore @@ -855,14 +831,6 @@

    Method List

  • -
  • -
    - #initialize - JWT::JWA::HmacRbNaClFixed -
    -
  • - -
  • #initialize @@ -1400,14 +1368,6 @@

    Method List

  • -
    - #sign - JWT::JWA::HmacRbNaCl -
    -
  • - - -
  • sign JWT::JWA::Unsupported @@ -1415,14 +1375,6 @@

    Method List

  • -
  • -
    - #sign - JWT::JWA::HmacRbNaClFixed -
    -
  • - -
  • #sign @@ -1704,14 +1656,6 @@

    Method List

  • -
    - #verify - JWT::JWA::HmacRbNaCl -
    -
  • - - -
  • verify JWT::JWA::Unsupported @@ -1719,14 +1663,6 @@

    Method List

  • -
  • -
    - #verify - JWT::JWA::HmacRbNaClFixed -
    -
  • - -
  • #verify diff --git a/top-level-namespace.html b/top-level-namespace.html index 480592a7..7671d670 100644 --- a/top-level-namespace.html +++ b/top-level-namespace.html @@ -100,7 +100,7 @@

    Defined Under Namespace