Class: SyrupPay::JsonEncryptionCompactSerialization

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

Class Method Summary collapse

Class Method Details

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



15
16
17
18
19
20
# File 'lib/syruppay_jose.rb', line 15

def self.serialization(key, header = {}, payload)
  payload = payload

  jwe_serializer = SyrupPay::JweSerializer.new(key)
  jwe_serializer.compactSerialize(header, payload)
end