Class FinSecurityMediaRDH2
Implementation of RDH-2 key files based on the PPI specification 1.0 dated 2004-02-12 and RDH-10 key files based on the PPI specification 1.0 dated 2008-06-20.
Implements
Inherited Members
Namespace: Subsembly.FinTS
Assembly: Subsembly.FinTS.Core.dll
Syntax
public class FinSecurityMediaRDH2 : FinSecurityMediaKeyFile, IFinSecurityMedia
Remarks
This is the default and primary key file format for all future use.
As almost all banks support RDH-10 by now, and we always pick the highest RDH version by default, this class now always creates RDH-10 files by default. In order to create RDH-2 files, the explicit constructor FinSecurityMediaRDH2(FinSecurityMediaKeyFileFormat) must be used. Regardless of the default format selected in the constructor, the class can always open and use any RDH key files.
Constructors
FinSecurityMediaRDH2()
Declaration
public FinSecurityMediaRDH2()
FinSecurityMediaRDH2(FinSecurityMediaKeyFileFormat)
Declaration
public FinSecurityMediaRDH2(FinSecurityMediaKeyFileFormat nDefaultFormat)
Parameters
Type | Name | Description |
---|---|---|
FinSecurityMediaKeyFileFormat | nDefaultFormat | The file format that shall be used when creating a new key file. This must be either RDH2, or RDH10. |
FinSecurityMediaRDH2(FinSecurityProfile)
Declaration
public FinSecurityMediaRDH2(FinSecurityProfile aProfile)
Parameters
Type | Name | Description |
---|---|---|
FinSecurityProfile | aProfile |
Methods
OnCancel()
Declaration
protected override void OnCancel()
Overrides
OnChangePassphrase(string)
Declaration
protected override FinAuthenticateResult OnChangePassphrase(string sNewPassphrase)
Parameters
Type | Name | Description |
---|---|---|
string | sNewPassphrase |
Returns
Type | Description |
---|---|
FinAuthenticateResult |
Overrides
OnCreateKeyFile(string, string)
Declaration
protected override void OnCreateKeyFile(string sUserName, string sPassphrase)
Parameters
Type | Name | Description |
---|---|---|
string | sUserName | |
string | sPassphrase |
Overrides
OnGetMaxKeyLength()
Declaration
protected override int OnGetMaxKeyLength()
Returns
Type | Description |
---|---|
int |
Overrides
OnGetSecurityProfiles()
Declaration
protected override FinSecurityProfile[] OnGetSecurityProfiles()
Returns
Type | Description |
---|---|
FinSecurityProfile[] |
Overrides
Remarks
Technically this key file implementation can store RDH-1, RDH-2, RDH-10, and RAH-10 keys. However, according to the specification, only RDH-2 and RDH-10 keys are allowed.
OnLoadKeyFile(string, string)
Declaration
protected override FinAuthenticateResult OnLoadKeyFile(string sUserName, string sPassphrase)
Parameters
Type | Name | Description |
---|---|---|
string | sUserName | |
string | sPassphrase |
Returns
Type | Description |
---|---|
FinAuthenticateResult |
Overrides
OnRelease()
Declaration
protected override void OnRelease()
Overrides
OnSaveKeyFile(string)
Declaration
protected override void OnSaveKeyFile(string sFileName)
Parameters
Type | Name | Description |
---|---|---|
string | sFileName |
Overrides
OnSelectKeyFile(string)
Declaration
protected override FinAuthenticateResult OnSelectKeyFile(string sFileName)
Parameters
Type | Name | Description |
---|---|---|
string | sFileName |
Returns
Type | Description |
---|---|
FinAuthenticateResult |