Table of Contents

Class DesktopSmartCardConnection

Namespace
Yubico.Core.Devices.SmartCard
Assembly
Yubico.Core.dll
public class DesktopSmartCardConnection : ISmartCardConnection
Inheritance
object
DesktopSmartCardConnection
Implements

Methods

BeginTransaction(out bool)

Begins a transacted connection to the smart card.

public IDisposable BeginTransaction(out bool cardWasReset)

Parameters

cardWasReset bool

Returns

IDisposable

An IDisposable that represents the transaction.

Remarks

This method has no effect on platforms which do not support transactions.

Exceptions

SCardException

Thrown when the underlying platform smart card subsystem encounters an error.

Dispose()

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

Reconnect()

public void Reconnect()

Transmit(CommandApdu)

Synchronously transmit a command APDU to the smart card.

public ResponseApdu Transmit(CommandApdu commandApdu)

Parameters

commandApdu CommandApdu

A command to send to the smart card.

Returns

ResponseApdu

A response APDU containing the smart card's reply.

Exceptions

ArgumentNullException

commandApdu is null.

SCardException

Thrown when the underlying platform smart card subsystem encounters an error.