Class: JWT::JWA::VerifierContext Private
- Inherits:
-
Object
- Object
- JWT::JWA::VerifierContext
- Defined in:
- lib/jwt/jwa/verifier_context.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.
9 10 11 12 |
# File 'lib/jwt/jwa/verifier_context.rb', line 9 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.
7 8 9 |
# File 'lib/jwt/jwa/verifier_context.rb', line 7 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.
14 15 16 17 18 |
# File 'lib/jwt/jwa/verifier_context.rb', line 14 def verify(*args, **kwargs) @keys.any? do |key| @jwa.verify(*args, **kwargs, verification_key: key) end end |