Class FinAdminUtil

Namespace
Subsembly.FinTS
Assembly
Subsembly.FinTS.Core.dll

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

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.

public static readonly string KEYFILE_OPENDIALOGFILTER

Field Value

string

KEYFILE_SAFEDIALOGFILTER

keep "typo" for compatibility reasons...

public static readonly string KEYFILE_SAFEDIALOGFILTER

Field Value

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.

public static readonly string KEYFILE_SAVEDIALOGFILTER

Field Value

string

Properties

DefaultFolder

Returns a reference to the system default contact folder.

public static FinContactFolder DefaultFolder { get; }

Property Value

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.

public static FinSecurityProfile[] GetProfiles(IFinSecurityMedia aSecMedia, FinContact aContact = null, FinBanksRdhVersionSet nRdhSet = FinBanksRdhVersionSet.All)

Parameters

aSecMedia IFinSecurityMedia

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.

aContact FinContact

Optional FinContact instance for which to provide suitable RDH or RAH security profiles.

nRdhSet FinBanksRdhVersionSet

The 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.