Class FinSecurityMediaZKA
Implements the IFinSecurityMedia interface for SECCOS (FinTS 3.0) cards.
Inheritance
System.Object
FinSecurityMediaZKA
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.SmartCard.dll
public class FinSecurityMediaZKA : FinSecurityMediaSmartCard, IFinSecurityMedia, IFinSecurityMediaSmartCard
Constructors
Declaration
public FinSecurityMediaZKA()
Methods
Declaration
protected override FinAuthenticateResult OnChangePin(string sOldPin, string sNewPin)
Parameters
Type |
Name |
Description |
System.String |
sOldPin |
The old PIN must consist of at least 4 and at most 8 characters. If an old PIN
with any other length is provided, then
BadPassphrase is returned.
|
System.String |
sNewPin |
The new PIN must consist of at least 6 and at most 8 characters. If a new PIN
with any other length is provided, then
BadPassphrase is returned.
|
Returns
Overrides
Declaration
protected override FinAuthenticateResult OnChangePinSecure()
Returns
Overrides
Declaration
protected override byte[] OnDecrypt(FinContact aContact, FinSecureKey aKey, FinOperationMode nOpMode, byte[] vbCrypt)
Parameters
Returns
Type |
Description |
System.Byte[] |
|
Overrides
Declaration
protected override void OnEraseContact(int nContactIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
nContactIndex |
|
Overrides
Declaration
protected override FinSecurityMediaCaps OnGetCapabilities()
Returns
Overrides
Declaration
protected override int OnGetContactCapacity()
Returns
Type |
Description |
System.Int32 |
Currently always returns the constant value 5.
|
Overrides
Declaration
protected override int OnGetMaxKeyLength()
Returns
Type |
Description |
System.Int32 |
Always returns 500, which is the theoretical maximum key length of the most
advanced SECCOS card type. In reality, a particular SECCOS card may have a much
shorter maximum key length.
|
Overrides
Declaration
protected override FinSecurityMediaPassphraseFlags OnGetPassphraseFlags()
Returns
Overrides
Declaration
protected override int OnGetPassphraseMaxLength()
Returns
Type |
Description |
System.Int32 |
Always returns 8.
|
Overrides
Declaration
protected override int OnGetPassphraseMinLength()
Returns
Type |
Description |
System.Int32 |
Always returns 4, which is the absolute min length of the CSA password. Note that
in order to be usable, a CSA password must consist of at least 6 characters.
Shorter CSA passwords are only used as transport passwords.
|
Overrides
Declaration
protected override FinSecurityProfile[] OnGetSecurityProfiles()
Returns
Overrides
Declaration
protected override void OnInitContact(FinContact aContact)
Parameters
Overrides
Declaration
protected override void OnReadContact(FinContact aContact, int nContactIndex)
Parameters
Type |
Name |
Description |
FinContact |
aContact |
|
System.Int32 |
nContactIndex |
|
Overrides
Declaration
protected override FinSecureKey OnReadKey(FinContact aContact, FinSecureKeyType nKeyType, int nKeyNumber, int nKeyVersion)
Parameters
Returns
Overrides
Declaration
protected override void OnReleaseCard(CardExpress aCard)
Parameters
Type |
Name |
Description |
Subsembly.SmartCard.CardExpress |
aCard |
|
Overrides
Declaration
protected override byte[] OnSelectCard(CardExpress aCard)
Parameters
Type |
Name |
Description |
Subsembly.SmartCard.CardExpress |
aCard |
|
Returns
Type |
Description |
System.Byte[] |
|
Overrides
Declaration
protected override byte[] OnSignHash(FinContact aContact, FinSecureKey aKey, FinOperationMode nOpMode, FinHash nHash, byte[] vbHash)
Parameters
Returns
Type |
Description |
System.Byte[] |
|
Overrides
Declaration
protected override void OnUpdateKeyState(FinContact aContact, FinSecureKey aKey)
Parameters
Overrides
Declaration
protected override FinAuthenticateResult OnVerifyPin(string sPin)
Parameters
Type |
Name |
Description |
System.String |
sPin |
|
Returns
Overrides
Declaration
protected override FinAuthenticateResult OnVerifyPinSecure()
Returns
Overrides
Declaration
protected override void OnWriteContact(FinContact aContact, int nContactIndex)
Parameters
Type |
Name |
Description |
FinContact |
aContact |
|
System.Int32 |
nContactIndex |
|
Overrides
Implements