Class: JWT::JWA::SignerContext Private
- Inherits:
-
Object
- Object
- JWT::JWA::SignerContext
- 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:, 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.
36 37 38 39 |
# File 'lib/jwt/jwa.rb', line 36 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.
34 35 36 |
# File 'lib/jwt/jwa.rb', line 34 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.
41 42 43 |
# File 'lib/jwt/jwa.rb', line 41 def sign(*args, **kwargs) @jwa.sign(*args, **kwargs, signing_key: @key) end |