UIso class abstract
ISO8583 (POS/switch) setup, like U.baseUrl for REST: host config, terminal context, security module, trace counter. UIso.init(config: c, context: ctx, securityModule: hsm, nextTraceNumber: nextStan)
Constructors
- UIso()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- config ↔ HostConfig
-
Host settings (address, NII, BIN, key slots).
getter/setter pair
- context ↔ HostContext
-
Terminal state (terminal/merchant id after logon, device serials).
getter/setter pair
- isLoggedOn → bool
-
True after a successful logon (terminal id known).
no setter
- link → IsoLink
-
The shared connection to the host.
no setter
-
nextTraceNumber
↔ Future<
int> Function() -
Must keep counting across restarts; the host refuses a number it has
already seen today.
getter/setter pair
- pinKeyIndex → int
-
The key slot the security module uses when it encrypts a PIN.
no setter
- securityModule ↔ IsoSecurityModule
-
Hardware/software security module that holds keys, makes MACs and PIN blocks.
getter/setter pair
- transportFactory ↔ IsoTransport Function(HostConnectionInfo info)
-
How to open the connection (TCP socket by default; replace for tests).
getter/setter pair
Static Methods
-
init(
{required HostConfig config, required HostContext context, required IsoSecurityModule securityModule, required Future< int> nextTraceNumber(), IsoTransport transportFactory(HostConnectionInfo info)?}) → void - Sets everything UIsoClient needs; call before the first send (again to switch hosts).
-
reset(
) → Future< void> - Drops the open connection so the next send reconnects with new settings.
-
storeSessionKeys(
Map< IsoKeyType, IsoSessionKey> keys) → Future<void> - Puts the keys a logon returned into the security module, each at the slot the host settings name. The keys are never readable again afterwards.