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.
public class FinSecurityMediaRDH2 : FinSecurityMediaKeyFile, IFinSecurityMedia
- Inheritance
-
FinSecurityMediaRDH2
- Implements
- Inherited Members
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()
public FinSecurityMediaRDH2()
FinSecurityMediaRDH2(FinSecurityMediaKeyFileFormat)
public FinSecurityMediaRDH2(FinSecurityMediaKeyFileFormat nDefaultFormat)
Parameters
nDefaultFormatFinSecurityMediaKeyFileFormatThe file format that shall be used when creating a new key file. This must be either RDH2, or RDH10.
FinSecurityMediaRDH2(FinSecurityProfile)
public FinSecurityMediaRDH2(FinSecurityProfile aProfile)
Parameters
aProfileFinSecurityProfile
Methods
OnCancel()
protected override void OnCancel()
OnChangePassphrase(string)
protected override FinAuthenticateResult OnChangePassphrase(string sNewPassphrase)
Parameters
sNewPassphrasestring
Returns
OnCreateKeyFile(string, string)
protected override void OnCreateKeyFile(string sUserName, string sPassphrase)
Parameters
OnGetMaxKeyLength()
protected override int OnGetMaxKeyLength()
Returns
OnGetSecurityProfiles()
protected override FinSecurityProfile[] OnGetSecurityProfiles()
Returns
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)
protected override FinAuthenticateResult OnLoadKeyFile(string sUserName, string sPassphrase)
Parameters
Returns
OnRelease()
protected override void OnRelease()
OnSaveKeyFile(string)
protected override void OnSaveKeyFile(string sFileName)
Parameters
sFileNamestring
OnSelectKeyFile(string)
protected override FinAuthenticateResult OnSelectKeyFile(string sFileName)
Parameters
sFileNamestring