Class: JWT::JWA::VerifierContext Private
- Inherits:
-
Object
- Object
- JWT::JWA::VerifierContext
- Defined in:
- lib/jwt/jwa.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #jwa ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(jwa:, keys:) ⇒ VerifierContext
constructor
private
A new instance of VerifierContext.
- #verify(*args, **kwargs) ⇒ Object private
Constructor Details
#initialize(jwa:, keys:) ⇒ VerifierContext
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of VerifierContext.
20 21 22 23 |
# File 'lib/jwt/jwa.rb', line 20 def initialize(jwa:, keys:) @jwa = jwa @keys = Array(keys) end |
Instance Attribute Details
#jwa ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 |
# File 'lib/jwt/jwa.rb', line 18 def jwa @jwa end |
Instance Method Details
#verify(*args, **kwargs) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
25 26 27 28 29 |
# File 'lib/jwt/jwa.rb', line 25 def verify(*args, **kwargs) @keys.any? do |key| @jwa.verify(*args, **kwargs, verification_key: key) end end |