Class FinSecurityProfile

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

Very simple helper class that holds the security procedure code and version which together make up the security profile.

public class FinSecurityProfile
Inheritance
FinSecurityProfile
Inherited Members

Remarks

This class overrides Equals(object) in order to compare instances based on the actual value of SecurityProcCode and SecurityProcVersion.

Constructors

FinSecurityProfile(string, int)

public FinSecurityProfile(string sSecurityProcCode, int nSecurityProcVersion)

Parameters

sSecurityProcCode string
nSecurityProcVersion int

Exceptions

ArgumentNullException

The parameter sSecurityProcCode was null.

ArgumentException

The length of the sSecurityProcCode string was not 3.

ArgumentOutOfRangeException

The nSecurityProcVersion was negative or greater than 999.

Properties

CipherAlgorithm

The cipher algorithm to be used for encryption/decryption with this security profile.

public FinCipher CipherAlgorithm { get; }

Property Value

FinCipher

CipherOperationMode

The operation mode that shall be used for encrypt/decrypt operations using this security profile.

public FinOperationMode CipherOperationMode { get; }

Property Value

FinOperationMode

DigitalSignatureHashAlgorithm

The hash algorithm to be used for digital signature hashes (i.e. for signatures with the key "D") with this security profile.

public FinHash DigitalSignatureHashAlgorithm { get; }

Property Value

FinHash

DigitalSignatureOperationMode

The operation mode that shall be used for digitial signature operations (i.e. signatures with the key "D") using this security profile.

public FinOperationMode DigitalSignatureOperationMode { get; }

Property Value

FinOperationMode

FingerprintHashAlgorithm

The default algorithm to be used for computing the fingerprint value of a public key.

public FinHash FingerprintHashAlgorithm { get; }

Property Value

FinHash

IsRSA

Is true for RDH and RAH and maybe future RSA based profiles with a similar profile version structure.

public bool IsRSA { get; }

Property Value

bool

MaxKeyLength

The maximum RSA key length in bytes.

public int MaxKeyLength { get; }

Property Value

int

MinKeyLength

The minimum RSA key length in bytes.

public int MinKeyLength { get; }

Property Value

int

SecurityProcCode

public string SecurityProcCode { get; }

Property Value

string

SecurityProcVersion

public int SecurityProcVersion { get; }

Property Value

int

SignatureHashAlgorithm

The hash algorithm to be used for authentication hashes (i.e. for signatures with the key "S") with this security profile.

public FinHash SignatureHashAlgorithm { get; }

Property Value

FinHash

SignatureOperationMode

The operation mode that shall be used for authentication operations (i.e. signatures with the key "S") using this security profile.

public FinOperationMode SignatureOperationMode { get; }

Property Value

FinOperationMode

Methods

Equals(object)

public override bool Equals(object aObject)

Parameters

aObject object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string