Class FinChallengeInfo
Trivial class that collects the information about a challenge provided by the bank system.
Inheritance
Inherited Members
Namespace: Subsembly.FinTS
Assembly: Subsembly.FinTS.Core.dll
Syntax
public class FinChallengeInfo
Fields
Challenge
The actual challenge that shall be displayed to the user.
Declaration
public string Challenge
Field Value
Type | Description |
---|---|
System.String | This string may consist of up to 2048 characters. |
ChallengeBinary
Binary challenge data.
Declaration
public FinByteBuffer ChallengeBinary
Field Value
Type | Description |
---|---|
FinByteBuffer |
Remarks
This data is extracted from the binary ChallengeUC field of HITAN. It may be needed if that field does not contain a real HHDUC string that can be stored in ChallengeHHDUC.
ChallengeExpiryDate
Optional date when the challenge will expire. That is, the user must provide the TAN matching this challenge before the challenge expires.
Declaration
public SwiftDate ChallengeExpiryDate
Field Value
Type | Description |
---|---|
SwiftDate |
ChallengeExpiryTime
Optional time that, together with the ChallengeExpiryDate, defines the exact point in time when the challenge expires.
Declaration
public SwiftTime ChallengeExpiryTime
Field Value
Type | Description |
---|---|
SwiftTime |
ChallengeHHDUC
Special challenge data according to the HHD UC specification.
Declaration
public string ChallengeHHDUC
Field Value
Type | Description |
---|---|
System.String |
Remarks
This data is either extracted from the binary ChallengeUC field of HITAN version 4, or from the standard Challenge field if this starts with the meta token CHLGUC. It contains the complete challenge UC including the LC length field.
ChallengeHTML
Challenge text with HTML markup.
Declaration
public string ChallengeHTML
Field Value
Type | Description |
---|---|
System.String |
Remarks
If the challenge text from the bank contains HTML markup, then the raw challenge text including the HTML markup is stored in this field. The Challenge field contains the text only version of the challenge text without any markup. If the challenge text from the bank does not include HTML markup, then this field has the same value as the Challenge field.
ChallengeMatrixCode
If the challenge data contains a marix code, e.g. photoTAN, then the net data of the matrix code can be accessed using this property.
Declaration
public byte[] ChallengeMatrixCode
Field Value
Type | Description |
---|---|
System.Byte[] |
Methods
GetChallengePrompt(FinTanProcessParameters)
Produces a human readable prompt for this challenge, based on the Challenge text.
Declaration
public string GetChallengePrompt(FinTanProcessParameters aTanProc)
Parameters
Type | Name | Description |
---|---|---|
FinTanProcessParameters | aTanProc |
Returns
Type | Description |
---|---|
System.String |
GetDefaultPrompt(FinTanProcessParameters)
Gets a default prompt text without challenge.
Declaration
public static string GetDefaultPrompt(FinTanProcessParameters aTanProc)
Parameters
Type | Name | Description |
---|---|---|
FinTanProcessParameters | aTanProc |
Returns
Type | Description |
---|---|
System.String |