NoOpXsecCallback

No-op IXsecCallback implementation, used by flavors with no security callback wired up at all. Every method logs a warning and returns a harmless dummy value instead of relying on IXsecCallback's own (silent) defaults, so a call reaching here is still visible in the logs.

Functions

Link copied to clipboard
open override fun hsmFlushCaKeys()

Clears all CA public keys.

Link copied to clipboard
open override fun hsmGetCaKey(inbound: ByteArray): ByteArray

Gets a CA public key modulus and exponent for a RID and CAPK index.

Link copied to clipboard
open override fun hsmGetCapkIndexPresenceStatus(inbound: ByteArray): Boolean

Checks CAPK index presence.

Link copied to clipboard
open override fun hsmStoreCaKey(inbound: ByteArray)

Registers a CA public key for a RID.

Link copied to clipboard
open override fun rdrActivate()

Activate contactless card (EMV Level 1).

Link copied to clipboard
open override fun rdrCancelTagDetection()

Cancels an in-progress rdrDetectCardInterface call.

Link copied to clipboard
open override fun rdrDetectCardInterface(supportedInterface: Int, timeout: Int): Int

Performs card detection (swipe, instert & tap) on all supported interfaces until timeout.

Link copied to clipboard
open override fun rdrDetectCollision()

Detection potential contactless card collision (EMV Level 1).

Link copied to clipboard
open override fun rdrExchangeApdu(command: ByteArray): ByteArray

Sends an APDU command to the card and waits for a response.

Link copied to clipboard
open override fun rdrGetCardStatus(): Int

Returns the current card status.

Link copied to clipboard
open override fun rdrIsCardInserted(): Boolean
Link copied to clipboard
open override fun rdrPowerOff()

Powers card off.

Link copied to clipboard
open override fun rdrPowerOn(): Pair<Int, ByteArray?>

Powers card on.

Link copied to clipboard
open override fun rdrRemove(holdTime: Int)

Performs contactless card removal (EMV Level 1).

Link copied to clipboard
open override fun rdrResetAntenna()

Reset contactless card antenna (EMV Level 1).

Link copied to clipboard
open override fun rdrSwitchAntenna(onOff: Boolean)

Switch antenna on or off.

Link copied to clipboard
open override fun rngGetRandom(len: Int, range: Int): ByteArray

Retrieves a len bytes random with each byte in the range 0-range

Link copied to clipboard
open override fun sredComputeSsdSha(inbound: ByteArray): ByteArray

Compute SSD SHA.

Link copied to clipboard

Extract PAN and Expiration date.

Link copied to clipboard
open override fun sredGetDdFromTrack1Data(): ByteArray

Retrieves DD from Track1 data.

Link copied to clipboard
open override fun sredGetDdFromTrack2Data(): ByteArray

Retrieves DD from Track2 data.

Link copied to clipboard
open override fun sredGetIccKey(inbound: ByteArray): ByteArray

ICC key request.

Link copied to clipboard
open override fun sredGetIssuerKey(inbound: ByteArray): ByteArray

Issuer key request.

Link copied to clipboard
open override fun sredSetSignedRecord(inbound: ByteArray)

Sets signed record.

Link copied to clipboard

Stores the Relay Resistance Protocol (RRP) results into track 2 equivalent data (tag 57).

Link copied to clipboard
open override fun vcardGetApduResponse(inbound: ByteArray): ByteArray

Exchanges a C-APDU/R-APDU pair with the loaded virtual card script.

Link copied to clipboard
open override fun vcardGetCardInterface(): Int

Gets the interface the virtual card is currently presented on.

Link copied to clipboard
open override fun vcardGetCardStatus(): Int

Gets the current virtual card status.

Link copied to clipboard
open override fun vcardLoad(inbound: ByteArray)

Loads a virtual card script.

Link copied to clipboard
open override fun vcardPresent()

Presents the virtual card (consumes the next presentation tag in the loaded script).

Link copied to clipboard
open override fun vcardRemove()

Removes the virtual card.

Link copied to clipboard
open override fun vcardUnload()

Unloads the current virtual card script.