Class FinHHD

Namespace
Subsembly.FinTS.HHD
Assembly
Subsembly.FinTS.Core.dll
public abstract class FinHHD : IDisposable
Inheritance
FinHHD
Implements
Derived
Inherited Members

Constructors

FinHHD()

public FinHHD()

Properties

DeviceName

public abstract string DeviceName { get; }

Property Value

string

IsSupported

Indicates whether this HHD device type is generally supported on this platform.

public abstract bool IsSupported { get; }

Property Value

bool

For a Bluetooth HHD device this shall be true if, and only if, the platform supports Bluetooth LE.

For a USB HHD device this shall be true if, and only if, the platform supports PC/SC connections.

State

public FinHHDState State { get; }

Property Value

FinHHDState

Methods

AbortHHDUC()

If there is any ongoing transmission, then it is aborted at this point.

public void AbortHHDUC()

BuildSecoderInfoAPDU()

Builds a "boxed" SECODER INFO command.

protected byte[] BuildSecoderInfoAPDU()

Returns

byte[]

CheckPresence()

Check whether the Chip-TAN device is present.

protected abstract bool CheckPresence()

Returns

bool

Dispose()

public virtual void Dispose()

FinalizeHHDUC(bool)

Starts transmitting a SECODER FINALIZE TRANSACTION command to the reader.

public FinHHDError FinalizeHHDUC(bool fOK)

Parameters

fOK bool

Returns

FinHHDError

GetErrorText(FinHHDError, int)

public static string GetErrorText(FinHHDError nError, int nSW)

Parameters

nError FinHHDError
nSW int

Returns

string

OnReceiveError(FinHHDErrorEventArgs)

protected void OnReceiveError(FinHHDErrorEventArgs aEventArgs)

Parameters

aEventArgs FinHHDErrorEventArgs

OnReceiveFinalize(FinHHDFinalizeEventArgs)

protected void OnReceiveFinalize(FinHHDFinalizeEventArgs aEventArgs)

Parameters

aEventArgs FinHHDFinalizeEventArgs

OnReceiveSecoderInfo(FinHHDSecoderInfoEventArgs)

protected void OnReceiveSecoderInfo(FinHHDSecoderInfoEventArgs aEventArgs)

Parameters

aEventArgs FinHHDSecoderInfoEventArgs

OnReceiveTAN(FinHHDTanEventArgs)

protected void OnReceiveTAN(FinHHDTanEventArgs aEventArgs)

Parameters

aEventArgs FinHHDTanEventArgs

ParseSecoderInfoAPDU(byte[])

protected FinHHDSecoderInfo ParseSecoderInfoAPDU(byte[] vbResponseAPDU)

Parameters

vbResponseAPDU byte[]

Returns

FinHHDSecoderInfo

ReceiveAPDU(int, byte[])

protected void ReceiveAPDU(int nSW, byte[] vbResponseAPDU)

Parameters

nSW int
vbResponseAPDU byte[]

SecoderInfo()

public FinHHDError SecoderInfo()

Returns

FinHHDError

TransmitHHDUC(FinChallengeHHDUC)

Starts transmitting the challenge to the reader, using a boxed SECODER TRANSMIT HHDUC.

public FinHHDError TransmitHHDUC(FinChallengeHHDUC aChallenge)

Parameters

aChallenge FinChallengeHHDUC

Returns

FinHHDError

Remarks

This method can only be used to transmit challenge data without AMS.

TransmitHHDUC(byte[], bool)

Starts transmitting the challenge to the reader, using a boxed SECODER TRANSMIT HHDUC. command.

public FinHHDError TransmitHHDUC(byte[] vbChallenge, bool fChallengeWithAMS)

Parameters

vbChallenge byte[]
fChallengeWithAMS bool

Returns

FinHHDError

TransmitSecoderAPDU(byte[])

Start transmitting a boxed SECODER APDU in extended format.

protected abstract FinHHDError TransmitSecoderAPDU(byte[] vbSecoderAPDU)

Parameters

vbSecoderAPDU byte[]

Returns

FinHHDError

Remarks

The transmission of the APDU shall occur on a background thread. The final result, or error, must be provided asynchronously by calling ReceiveAPDU(int, byte[]).

Events

ReceiveError

public event EventHandler<FinHHDErrorEventArgs> ReceiveError

Event Type

EventHandler<FinHHDErrorEventArgs>

ReceiveFinalize

public event EventHandler<FinHHDFinalizeEventArgs> ReceiveFinalize

Event Type

EventHandler<FinHHDFinalizeEventArgs>

ReceiveSecoderInfo

public event EventHandler<FinHHDSecoderInfoEventArgs> ReceiveSecoderInfo

Event Type

EventHandler<FinHHDSecoderInfoEventArgs>

ReceiveTAN

Asynchronously provides the TAN result from the preceeding TransmitHHDUC(byte[], bool) call.

public event EventHandler<FinHHDTanEventArgs> ReceiveTAN

Event Type

EventHandler<FinHHDTanEventArgs>