Class EncryptionFactory
Inheritance
System.Object
EncryptionFactory
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()
Namespace: FixAntenna.FixEngine.Encryption
Assembly: FixAntenna.Encryption.dll
Syntax
public sealed class EncryptionFactory
Methods
CreateEncryption(Config, EncryptionType, String, String, Int32)
Creates encryption for session parameters.
Declaration
public static IEncryption CreateEncryption(Config properties, EncryptionType encryptionType, string sender, string target, int port)
Parameters
| Type | Name | Description |
|---|---|---|
| Config | properties | the configuration of session |
| EncryptionType | encryptionType | the encryption type |
| System.String | sender | the sender |
| System.String | target | the target |
| System.Int32 | port | the port |
Returns
| Type | Description |
|---|---|
| IEncryption | Encryption |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | if encryption type is not supported |