Class: JWT::JWA::SignerContext Private

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#jwaObject (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