Class FinSecurityProfile
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
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
CipherOperationMode
The operation mode that shall be used for encrypt/decrypt operations using this security profile.
public FinOperationMode CipherOperationMode { get; }
Property Value
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
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
FingerprintHashAlgorithm
The default algorithm to be used for computing the fingerprint value of a public key.
public FinHash FingerprintHashAlgorithm { get; }
Property Value
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
MaxKeyLength
The maximum RSA key length in bytes.
public int MaxKeyLength { get; }
Property Value
MinKeyLength
The minimum RSA key length in bytes.
public int MinKeyLength { get; }
Property Value
SecurityProcCode
public string SecurityProcCode { get; }
Property Value
SecurityProcVersion
public int SecurityProcVersion { get; }
Property Value
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
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
Methods
Equals(object)
public override bool Equals(object aObject)
Parameters
aObjectobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()