Class: Moov::Models::Components::E2EEToken
- Inherits:
-
Object
- Object
- Moov::Models::Components::E2EEToken
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/e2eetoken.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
- #==(other) ⇒ Object
-
#initialize(token:) ⇒ E2EEToken
constructor
A new instance of E2EEToken.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(token:) ⇒ E2EEToken
Returns a new instance of E2EEToken.
22 23 24 |
# File 'lib/moov/models/components/e2eetoken.rb', line 22 def initialize(token:) @token = token end |
Instance Method Details
#==(other) ⇒ Object
27 28 29 30 31 |
# File 'lib/moov/models/components/e2eetoken.rb', line 27 def ==(other) return false unless other.is_a? self.class return false unless @token == other.token true end |