EncryptedReaderPayload class
Encrypted card-data payload emitted by the reader after a successful read.
Security: encryptedData and ksn are sensitive. They are intentionally redacted from toString(). They flow from the SDK to the POS to em-api and no further; nothing in this repo is allowed to log them.
Constructors
- EncryptedReaderPayload({required EncryptedPayloadFormat format, required String encryptedData, String? ksn, String? deviceSerial, EntryMode entryMode = EntryMode.unknown, CardSummary? cardSummary, DateTime? capturedAt})
-
EncryptedReaderPayload.fromJson(Map<
String, dynamic> json) -
factory
Properties
- capturedAt → DateTime
-
UTC capture time.
final
- cardSummary → CardSummary?
-
Safe-to-display summary of the card.
final
- deviceSerial → String?
-
Reader hardware serial that produced this payload.
final
- encryptedData → String
-
Sensitive. Encrypted track / card data blob (hex or base64 per
the format). Never include in logs.
final
- entryMode → EntryMode
-
How the card was presented.
final
- format → EncryptedPayloadFormat
-
Format of encryptedData.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- ksn → String?
-
Sensitive. Key Serial Number for DUKPT decryption upstream.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
Intentionally omits encryptedData and ksn; reports only the
shape of the payload.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited