Class SecureMessageTransportHelper
- Namespace
- SecureExchangesSDK.Helpers
- Assembly
- SecureExchangesSDK.NetCore.dll
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.
public static class SecureMessageTransportHelper
- Inheritance
-
SecureMessageTransportHelper
- Inherited Members
Methods
CreateSecureMessageTransport<T>(T, string)
That method will create a json version of a secure transport
public static string CreateSecureMessageTransport<T>(T objectToSecure, string xmlPublicKey)
Parameters
objectToSecureTThe object to secure
xmlPublicKeystringThe minimum size of the public key must be 4096 bits
Returns
Type Parameters
TThe type of the object to secure
RebuildSecureMessageTransport<T>(string, string)
Reverse the object transport
public static T RebuildSecureMessageTransport<T>(string jsonSecureMessageTransport, string xmlPrivateKey)
Parameters
Returns
- T
Type Parameters
T