Class FinAdminUtil
Static utility functions for the FinTS setup and administration.
public static class FinAdminUtil
- Inheritance
-
FinAdminUtil
- Inherited Members
Fields
KEYFILE_DEFAULTEXT
Provides the default file extension to be used when generating a key file. Currently this is "rdh2".
public const string KEYFILE_DEFAULTEXT = "rdh2"
Field Value
KEYFILE_OPENDIALOGFILTER
Provides a file dialog filter string to for all supported key files. This shall be used when opening an existing key file.
public static readonly string KEYFILE_OPENDIALOGFILTER
Field Value
KEYFILE_SAFEDIALOGFILTER
keep "typo" for compatibility reasons...
public static readonly string KEYFILE_SAFEDIALOGFILTER
Field Value
KEYFILE_SAVEDIALOGFILTER
Provides a file dialog filter for the default key file format (RDH-2). This shall be used when creating a new key file.
public static readonly string KEYFILE_SAVEDIALOGFILTER
Field Value
Properties
DefaultFolder
Returns a reference to the system default contact folder.
public static FinContactFolder DefaultFolder { get; }
Property Value
Remarks
By default the FinAdmin contact manager stores the contact data in a user private application data folder.
Methods
GetProfiles(IFinSecurityMedia, FinContact, FinBanksRdhVersionSet)
Obtain a list of possible RDH and RAH security profiles version for a given security media.
public static FinSecurityProfile[] GetProfiles(IFinSecurityMedia aSecMedia, FinContact aContact = null, FinBanksRdhVersionSet nRdhSet = FinBanksRdhVersionSet.All)
Parameters
aSecMedia
IFinSecurityMediaOptional security media. The capabilities of the security media limit the possible RDH and RAH security profiles. If the optional aContact parameter is given, then the RSA key length of the ciphering key of this user will be used to narrow down the profile search.
aContact
FinContactOptional FinContact instance for which to provide suitable RDH or RAH security profiles.
nRdhSet
FinBanksRdhVersionSetThe initial set of RDH and RAH profiles to start with.
Returns
- FinSecurityProfile[]
The supported intersection of applicable security profiles. The newest security profiles are at the start of the returned array. If this method cannot find any appropriate security profile, then an empty array is returned.
Remarks
For HBCI versions before FinTS 3.0 the only possible security profile was RDH-1. Therefore this method implicitly assumes that FinTS 3.0 will be used. If you are configuring an older HBCI contact, then you may hard code RDH-1.
The more constraints are passed, the smaller is the returned result set will be.
If aSecMedia is null
, then this method just returns the given nRdhSet
converted to an array of FinSecurityProfile instances.