Class: Moov::Models::Components::E2EETokenUpdate

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/e2eetokenupdate.rb

Overview

Wraps a compact-serialized JSON Web Encryption (JWE) token used for secure transmission of sensitive data (e.g., PCI information) through intermediaries. This token is encrypted using the public key from /end-to-end-keys and wraps an AES key. For details and examples, refer to our [GitHub repository](github.com/moovfinancial/moov-go/blob/main/examples/e2ee/e2ee_test.go).

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(token: nil) ⇒ E2EETokenUpdate

Returns a new instance of E2EETokenUpdate.



22
23
24
# File 'lib/moov/models/components/e2eetokenupdate.rb', line 22

def initialize(token: nil)
  @token = token
end

Instance Method Details

#==(other) ⇒ Object



27
28
29
30
31
# File 'lib/moov/models/components/e2eetokenupdate.rb', line 27

def ==(other)
  return false unless other.is_a? self.class
  return false unless @token == other.token
  true
end