Class FinAdminUtil
Static utility functions for the FinTS setup and administration.
Inheritance
Inherited Members
Namespace: Subsembly.FinTS
Assembly: Subsembly.FinTS.Core.dll
Syntax
public static class FinAdminUtil
Fields
KEYFILE_DEFAULTEXT
Provides the default file extension to be used when generating a key file. Currently this is "rdh2".
Declaration
public const string KEYFILE_DEFAULTEXT = "rdh2"
Field Value
Type | Description |
---|---|
System.String |
KEYFILE_OPENDIALOGFILTER
Provides a file dialog filter string to for all supported key files. This shall be used when opening an existing key file.
Declaration
public static readonly string KEYFILE_OPENDIALOGFILTER
Field Value
Type | Description |
---|---|
System.String |
KEYFILE_SAFEDIALOGFILTER
keep "typo" for compatibility reasons...
Declaration
public static readonly string KEYFILE_SAFEDIALOGFILTER
Field Value
Type | Description |
---|---|
System.String |
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.
Declaration
public static readonly string KEYFILE_SAVEDIALOGFILTER
Field Value
Type | Description |
---|---|
System.String |
Properties
DefaultFolder
Returns a reference to the system default contact folder.
Declaration
public static FinContactFolder DefaultFolder { get; }
Property Value
Type | Description |
---|---|
FinContactFolder |
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.
Declaration
public static FinSecurityProfile[] GetProfiles(IFinSecurityMedia aSecMedia, FinContact aContact = null, FinBanksRdhVersionSet nRdhSet = FinBanksRdhVersionSet.All)
Parameters
Type | Name | Description |
---|---|---|
IFinSecurityMedia | aSecMedia | Optional 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. |
FinContact | aContact | Optional FinContact instance for which to provide suitable RDH or RAH security profiles. |
FinBanksRdhVersionSet | nRdhSet | The initial set of RDH and RAH profiles to start with. |
Returns
Type | Description |
---|---|
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.