Class: JWT::JWA::SignerContext Private
- Inherits:
-
Object
- Object
- JWT::JWA::SignerContext
- Defined in:
- lib/jwt/jwa/signer_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:, key:) ⇒ SignerContext
constructor
private
A new instance of SignerContext.
- #sign(*args, **kwargs) ⇒ Object private
Constructor Details
#initialize(jwa:, key:) ⇒ SignerContext
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 SignerContext.
9 10 11 12 |
# File 'lib/jwt/jwa/signer_context.rb', line 9 def initialize(jwa:, key:) @jwa = jwa @key = key 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/signer_context.rb', line 7 def jwa @jwa end |
Instance Method Details
#sign(*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 |
# File 'lib/jwt/jwa/signer_context.rb', line 14 def sign(*args, **kwargs) @jwa.sign(*args, **kwargs, signing_key: @key) end |