Class SecureMessageTransportHelper
This helper is to create SecureMessage Transport. A secure message transport, is an object that is encrypted with an AES 256 bits key. The keys is encrypted with the public keys, and store in the object.
Inheritance
System.Object
SecureMessageTransportHelper
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()
Namespace: SecureExchangesSDK.Helpers
Assembly: SecureExchangesSDK.dll
Syntax
public static class SecureMessageTransportHelper
Methods
CreateSecureMessageTransport<T>(T, String)
That method will create a json version of a secure transport
Declaration
public static string CreateSecureMessageTransport<T>(T objectToSecure, string xmlPublicKey)
Parameters
Type | Name | Description |
---|---|---|
T | objectToSecure | The object to secure |
System.String | xmlPublicKey | The minimum size of the public key must be 4096 bits |
Returns
Type | Description |
---|---|
System.String |
Type Parameters
Name | Description |
---|---|
T | The type of the object to secure |
RebuildSecureMessageTransport<T>(String, String)
Reverse the object transport
Declaration
public static T RebuildSecureMessageTransport<T>(string jsonSecureMessageTransport, string xmlPrivateKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | jsonSecureMessageTransport | |
System.String | xmlPrivateKey |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |