Class FinSecurityMediaFST
Implements the IFinSecurityMedia interface for RDH files as defined by the BdB/Bankverlag and used by EFIN and other products based on the BdB HBCI Kernel. These RDH files usually use the filename extension ".fst".
public class FinSecurityMediaFST : FinSecurityMediaKeyFile, IFinSecurityMedia
- Inheritance
-
FinSecurityMediaFST
- Implements
- Inherited Members
Constructors
FinSecurityMediaFST()
public FinSecurityMediaFST()
Properties
UserName
public string UserName { get; }
Property Value
Methods
GuessUserName(string)
Convenient helper that tries to guess the right user name from the key file name.
public static string GuessUserName(string sFileName)
Parameters
sFileName
stringComplete file name of the key file. Must not be
null
.
Returns
- string
If some reasonable guess could be made, then the guessed user name is returned. If no reasonable guess was possible, then
null
is returned.
Remarks
Guessing is solely based on the filename. If the file name is according to the
pattern "HBCIxxxx.fst", then the user name is assumed to be "xxxx". If the file
name is "dialog.fst", then the user name is assumed to be "dialog". In any other
case this method returns null
.
OnGetMaxKeyLength()
protected override int OnGetMaxKeyLength()
Returns
OnGetSecurityProfiles()
protected override FinSecurityProfile[] OnGetSecurityProfiles()
Returns
OnLoadKeyFile(string, string)
protected override FinAuthenticateResult OnLoadKeyFile(string sUserName, string sPassphrase)
Parameters
Returns
OnRelease()
protected override void OnRelease()
OnSelectKeyFile(string)
protected override FinAuthenticateResult OnSelectKeyFile(string sFileName)
Parameters
sFileName
string
Returns
- FinAuthenticateResult
If the file is not a FST key file, or if the file-message-digest stored in the file is bad, then WrongSecurityMedia is returned. In any other case Success is returned.