Class: SyrupPay::JsonSignatureCompactSerialization

Inherits:
Object
  • Object
show all
Defined in:
lib/syruppay_jose.rb

Class Method Summary collapse

Class Method Details

.serialization(key, header = {}, claims) ⇒ Object



8
9
10
11
# File 'lib/syruppay_jose.rb', line 8

def self.serialization(key, header = {}, claims)
  jws_serializer = SyrupPay::JwsSerializer.new(key)
  jws_serializer.compactSerialize(header, claims)
end