Class FinAdmin
Manages the contacts stored in a contact folder.
Inheritance
System.Object
FinAdmin
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Subsembly.FinTS.Win32.dll
Constructors
Declaration
public FinAdmin(IFinContactFolder aContactFolder, FinBanksFile aBanksFile)
Parameters
Type |
Name |
Description |
IFinContactFolder |
aContactFolder |
An IFinContactFolder implementation that provides access to the
storage of the FinContact instances that are managed by this
adminstrator. This could be the FinContactFolder.Default storage
folder, or your own implementation. Thus must not be null .
|
FinBanksFile |
aBanksFile |
Optional FinBanksFile instance that provides the bank data database
which significantly eases contact setup for the user. If this is null , then
the user must manually provide all contact data.
|
Exceptions
Type |
Condition |
System.ArgumentNullException |
The parameter aContactFolder was null.
|
Properties
The FinBanksFile instance that was passed to the constructor. May
be null
.
Declaration
public FinBanksFile BanksFile { get; }
Property Value
Declaration
public int ContactCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public IFinContactFolder ContactFolder { get; }
Property Value
Provides the default caption for all FinAdmin dialogs.
Declaration
public static string DefaultCaption { get; set; }
Property Value
Type |
Description |
System.String |
|
Optional HelpProvider instance that will be used to provide Help on all dialogs
spawned by this FinAdmin instance.
Declaration
public HelpProvider HelpProvider { get; set; }
Property Value
Type |
Description |
System.Windows.Forms.HelpProvider |
|
Flag that controls whether UPD accounts shall be hidden in all dialogs.
Declaration
public static bool HideAccounts { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Declaration
public void AddContact(IWin32Window aParentWindow, FinContact aContact, bool fSync)
Parameters
Type |
Name |
Description |
System.Windows.Forms.IWin32Window |
aParentWindow |
|
FinContact |
aContact |
|
System.Boolean |
fSync |
If true , then the added contact will automatically be synchronized, if
needed. If false , then it will just be added to the contact folder.
|
Declaration
public static string BrowseForKeyFile(string sFileName, bool fCreate)
Parameters
Type |
Name |
Description |
System.String |
sFileName |
|
System.Boolean |
fCreate |
|
Returns
Type |
Description |
System.String |
|
Change the PIN of the security media associated with the given contact.
Declaration
public void ChangeMediaPin(IWin32Window aParentWindow, FinContact aContact)
Parameters
Type |
Name |
Description |
System.Windows.Forms.IWin32Window |
aParentWindow |
|
FinContact |
aContact |
FinContact instance to change the PIN (or passphrase) for.
|
Change the online PIN of the given contact.
Declaration
public void ChangeOnlinePin(IWin32Window aParentWindow, FinContact aContact)
Parameters
Type |
Name |
Description |
System.Windows.Forms.IWin32Window |
aParentWindow |
|
FinContact |
aContact |
FinContact instance to change the PIN (or passphrase) for.
|
Declaration
public DialogResult DeleteContact(IWin32Window aParentWindow, FinContact aContact)
Parameters
Type |
Name |
Description |
System.Windows.Forms.IWin32Window |
aParentWindow |
|
FinContact |
aContact |
|
Returns
Type |
Description |
System.Windows.Forms.DialogResult |
|
Detects the type of communication service from the specified address and also
validates the address.
Declaration
public static FinCommService DetectCommService(string sCommAddress)
Parameters
Type |
Name |
Description |
System.String |
sCommAddress |
|
Returns
Show Form where the user can edit the contact data details.
Declaration
public DialogResult EditContact(IWin32Window aParentWindow, FinContact aContact)
Parameters
Type |
Name |
Description |
System.Windows.Forms.IWin32Window |
aParentWindow |
|
FinContact |
aContact |
FinContact instance to be edited by the user. Must not be null .
|
Returns
Type |
Description |
System.Windows.Forms.DialogResult |
|
Declaration
public FinContact FindContactName(string sContactName)
Parameters
Type |
Name |
Description |
System.String |
sContactName |
|
Returns
Declaration
public static string FormatFingerprint(byte[] vbFingerprint)
Parameters
Type |
Name |
Description |
System.Byte[] |
vbFingerprint |
|
Returns
Type |
Description |
System.String |
|
Declaration
public void GenerateIniLetter(FinContact aContact, IFinSecurityMedia aSecMedia)
Parameters
Type |
Name |
Description |
FinContact |
aContact |
Required FinContact object. This is solely used in order to extract the general
contact information that will appear on the Ini-letter. This is not used to obtain
the actual key data!
|
IFinSecurityMedia |
aSecMedia |
Authenticated security media object that will be used in order to extract the key
data that will appear on the Ini-letter.
|
Generates an Ini-Letter for the given key of the given contact.
Declaration
public static string GenerateIniLetter(string sIniLetterTemplate, FinContact aContact, FinSecureKey aKey)
Parameters
Type |
Name |
Description |
System.String |
sIniLetterTemplate |
Template string with placeholders.
|
FinContact |
aContact |
Required FinContact object. This is solely used in order to extract the general
contact information that will appear on the Ini-letter. This is not used to obtain
the actual key data!
|
FinSecureKey |
aKey |
The public key that shall appear on the Ini-letter.
|
Returns
Type |
Description |
System.String |
|
Declaration
public void GenerateIniLetter(IWin32Window aParentWindow, FinContact aContact)
Parameters
Type |
Name |
Description |
System.Windows.Forms.IWin32Window |
aParentWindow |
|
FinContact |
aContact |
|
Declaration
public FinContact ImportContact(string sContactFileName)
Parameters
Type |
Name |
Description |
System.String |
sContactFileName |
|
Returns
Reads the secret keys from a key file and stores them in the FinContact.
Declaration
public void InternalizeKeyFile(IWin32Window aParentWindow, FinContact aContact)
Parameters
Type |
Name |
Description |
System.Windows.Forms.IWin32Window |
aParentWindow |
|
FinContact |
aContact |
|
Exceptions
Type |
Condition |
System.ArgumentNullException |
The parameter aContact was null .
|
System.ArgumentException |
The SecurityMediaType of the given FinContact was not
KeyFile.
|
Declaration
public void KeyChange(IWin32Window aParentWindow, FinContact aContact)
Parameters
Type |
Name |
Description |
System.Windows.Forms.IWin32Window |
aParentWindow |
|
FinContact |
aContact |
|
Declaration
public FinContact NewContact(IWin32Window aParentWindow)
Parameters
Type |
Name |
Description |
System.Windows.Forms.IWin32Window |
aParentWindow |
|
Returns
Declaration
public FinContact NewContact(IWin32Window aParentWindow, bool fSync)
Parameters
Type |
Name |
Description |
System.Windows.Forms.IWin32Window |
aParentWindow |
|
System.Boolean |
fSync |
If true , then the new contact will be immediately synchronised after it was
created.
|
Returns
Declaration
public FinContact ProfileChange(IWin32Window aParentWindow, FinContact aContact)
Parameters
Type |
Name |
Description |
System.Windows.Forms.IWin32Window |
aParentWindow |
|
FinContact |
aContact |
|
Returns
Declaration
public void RequestBankKeys(IWin32Window aParentWindow, FinContact aContact)
Parameters
Type |
Name |
Description |
System.Windows.Forms.IWin32Window |
aParentWindow |
|
FinContact |
aContact |
|
Declaration
public void RevokePinBlock(IWin32Window aParentWindow, FinContact aContact)
Parameters
Type |
Name |
Description |
System.Windows.Forms.IWin32Window |
aParentWindow |
|
FinContact |
aContact |
|
Declaration
public void SubmitUserKeys(IWin32Window aParentWindow, FinContact aContact)
Parameters
Type |
Name |
Description |
System.Windows.Forms.IWin32Window |
aParentWindow |
|
FinContact |
aContact |
|
Helper that suggests a simple but unique default bank contact name.
Declaration
public string SuggestNewContactName(string sBaseName)
Parameters
Type |
Name |
Description |
System.String |
sBaseName |
|
Returns
Type |
Description |
System.String |
|
Declaration
public void SyncContact(IWin32Window aParentWindow, FinContact aContact)
Parameters
Type |
Name |
Description |
System.Windows.Forms.IWin32Window |
aParentWindow |
|
FinContact |
aContact |
|
Declaration
public void TanGeneratorSync(IWin32Window aParentWindow, FinContact aContact)
Parameters
Type |
Name |
Description |
System.Windows.Forms.IWin32Window |
aParentWindow |
|
FinContact |
aContact |
|
Declaration
public static bool ValidateCommAddress(FinCommService nCommService, string sCommAddress)
Parameters
Type |
Name |
Description |
FinCommService |
nCommService |
|
System.String |
sCommAddress |
|
Returns
Type |
Description |
System.Boolean |
|