Class FinSecurityMediaRDH
Implements the IFinSecurityMedia and IFinSecurityMediaSetup interfaces
for RDH files as defined by the DDBAC.
Inheritance
System.Object
FinSecurityMediaRDH
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Subsembly.FinTS.Core.dll
public class FinSecurityMediaRDH : IFinSecurityMedia
Constructors
Declaration
public FinSecurityMediaRDH()
Properties
Declaration
public FinSecurityMediaCaps Capabilities { get; }
Property Value
Declaration
public int ContactCapacity { get; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public int MaxKeyLength { get; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public FinSecurityMediaPassphraseFlags PassphraseFlags { get; }
Property Value
Declaration
public int PassphraseMaxLength { get; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public int PassphraseMinLength { get; }
Property Value
Type |
Description |
System.Int32 |
|
Provides the filename of the currently selected keyfile. Returns null
if
none was selected so far.
Declaration
public string SecurityMediaID { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public FinSecurityMediaType SecurityMediaType { get; }
Property Value
Always just returns "RDH-1".
Declaration
public FinSecurityProfile[] SecurityProfiles { get; }
Property Value
Declaration
public FinSecurityMediaState State { get; }
Property Value
Methods
Authenticate access to secure keys on keyfile with the given passphrase.
Declaration
public FinAuthenticateResult Authenticate(string sUserName, string sPassphrase)
Parameters
Type |
Name |
Description |
System.String |
sUserName |
|
System.String |
sPassphrase |
|
Returns
Declaration
public FinAuthenticateResult AuthenticateAdmin(string sUserName, string sAdminPassphrase)
Parameters
Type |
Name |
Description |
System.String |
sUserName |
|
System.String |
sAdminPassphrase |
|
Returns
Declaration
public FinAuthenticateResult AuthenticateSecure()
Returns
Declaration
public bool CanAuthenticateSecure()
Returns
Type |
Description |
System.Boolean |
|
Declaration
Declaration
public bool CanChangePassphraseSecure()
Returns
Type |
Description |
System.Boolean |
|
Declaration
public FinAuthenticateResult ChangePassphrase(string sUserName, string sOldPassphrase, string sNewPassphrase)
Parameters
Type |
Name |
Description |
System.String |
sUserName |
|
System.String |
sOldPassphrase |
|
System.String |
sNewPassphrase |
|
Returns
Declaration
public FinAuthenticateResult ChangePassphraseSecure()
Returns
Creates a new RDH key file in the DDBAC standard format.
Declaration
public void Create(string sSecurityMediaID, string sUserName, string sPassphrase)
Parameters
Type |
Name |
Description |
System.String |
sSecurityMediaID |
|
System.String |
sUserName |
|
System.String |
sPassphrase |
|
Declaration
public FinContact CreateContact()
Returns
Declaration
public byte[] Decrypt(FinContact aContact, FinSecureKey aKey, FinOperationMode nOpMode, byte[] vbCrypt)
Parameters
Returns
Type |
Description |
System.Byte[] |
|
Declaration
public void ElevateKey(FinContact aContact, FinSecureKey aKey, FinSecureKeyState nNewKeyState)
Parameters
Declaration
public byte[] Encrypt(FinContact aContact, FinSecureKey aKey, FinOperationMode nOpMode, byte[] vbData)
Parameters
Returns
Type |
Description |
System.Byte[] |
|
Declaration
public void EraseContact(int nContactIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
nContactIndex |
|
Declaration
public void EraseKey(FinContact aContact, FinSecureKey aKey)
Parameters
Generates a new public/private key pair.
Declaration
public FinSecureKey GenerateKey(FinContact aContact, FinSecureKeyType nKeyType, int nKeyLength, int nKeyNumber, int nKeyVersion)
Parameters
Type |
Name |
Description |
FinContact |
aContact |
|
FinSecureKeyType |
nKeyType |
|
System.Int32 |
nKeyLength |
|
System.Int32 |
nKeyNumber |
|
System.Int32 |
nKeyVersion |
|
Returns
Always throws a NotSupportedException.
Declaration
public FinAuthenticateResult InitPassphrase(string sUserName, string sPassphrase)
Parameters
Type |
Name |
Description |
System.String |
sUserName |
|
System.String |
sPassphrase |
|
Returns
Declaration
public FinContact ObtainContact(int nContactIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
nContactIndex |
|
Returns
Declaration
public FinSecureKey ObtainKey(FinContact aContact, FinSecureKeyType nKeyType, int nKeyNumber, int nKeyVersion)
Parameters
Returns
Declaration
Declaration
public void ResetKey(FinContact aContact, FinSecureKey aKey)
Parameters
Declaration
public FinAuthenticateResult Select(string sSecurityMediaID)
Parameters
Type |
Name |
Description |
System.String |
sSecurityMediaID |
|
Returns
Declaration
public byte[] SignHash(FinContact aContact, FinSecureKey aKey, FinOperationMode nOpMode, FinHash nHash, byte[] vbHash)
Parameters
Returns
Type |
Description |
System.Byte[] |
|
Stores or updates the contact data record on the security media.
Declaration
public void StoreContact(int nContactIndex, FinContact aContact)
Parameters
Type |
Name |
Description |
System.Int32 |
nContactIndex |
|
FinContact |
aContact |
|
Stores or updates the public bank key on the security media.
Declaration
public void StoreKey(FinContact aContact, FinSecureKey aKey)
Parameters
Declaration
public bool Verify(FinContact aContact, FinSecureKey aKey, FinOperationMode nOpMode, FinHash nHash, byte[] vbHash, byte[] vbSignature)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements