Class FinTanProcInfo

Namespace
Subsembly.FinTS
Assembly
Subsembly.FinTS.Core.dll

Simple class that collects the information required when presenting a TAN procedure for user selection.

public class FinTanProcInfo
Inheritance
FinTanProcInfo
Inherited Members

Remarks

This class provides the Description which contains a user readable string that is suitable for a combo box or other selection GUI.

Constructors

FinTanProcInfo(FinTanProcessParameters)

public FinTanProcInfo(FinTanProcessParameters aTanProc)

Parameters

aTanProc FinTanProcessParameters

Properties

Description

User readable description of this TAN procedure.

public string Description { get; }

Property Value

string

The description is just a combination of Name and TechnicalIdentification. Thus, the value is never null or an empty string.

Name

The user readable name of the TAN procedure.

public string Name { get; }

Property Value

string

This value is never null or an empty string.

SecurityFunction

The security function code of the TAN procedure.

public int SecurityFunction { get; }

Property Value

int

The value zero means that the security function code is not known. The value 999 indicates the simple one-step TAN procedure. Other codes in the range from 900 through 997 indicate special two step TAN procedures.

TanMediaClass

The TAN media class.

public string TanMediaClass { get; }

Property Value

string

Remarks

If a TAN media class could be determined, then this is either "G" for a TAN Generator (chipTAN, SmartTAN) or "M" for Mobile-TAN (smsTAN). If the TAN media class could not be determined, then null is returned.

See Also

TanMediaNameReqd

public int TanMediaNameReqd { get; }

Property Value

int

TanProcType

public FinTanProcType TanProcType { get; }

Property Value

FinTanProcType

TanProcessParameters

The TAN process parameters of this TAN procedure. May be null, if not applicable or unknown.

public FinTanProcessParameters TanProcessParameters { get; }

Property Value

FinTanProcessParameters

TechnicalIdentification

The technical identification of the TAN procedure.

public string TechnicalIdentification { get; }

Property Value

string

The value null means that the technical identification is not known, or the simple one-step TAN procedure.

Methods

GetAllowedTanProcs(FinContact)

Determines an array of 2-step TAN procedures that are allowed for a particular contact.

public static FinTanProcInfo[] GetAllowedTanProcs(FinContact aContact)

Parameters

aContact FinContact

The contact for which to determine the allowed TAN procedures.

Returns

FinTanProcInfo[]

If the given contact is not synchronised, and does not have any BPD, then null is returned. In any other case an array with all allowed TAN procedures is returned. The returned array may be empty. The classic TAN procedure 999 is never returned.

Exceptions

ArgumentNullException

The parameter aContact was null.

ArgumentException

The given contact does not use PIN/TAN security, i.e. IsPinTan is false.

GuessTanProcType(string)

Tries to classify a TANprocedured based on its technical identification.

public static FinTanProcType GuessTanProcType(string sTechnicalIdentification)

Parameters

sTechnicalIdentification string

The technical identification of a TAN procedure. If this is null, then Unknown is returned.

Returns

FinTanProcType

ToString()

Always returns the value of Description.

public override string ToString()

Returns

string