Class SecureMessageTransportHelper
- Espace de noms
- 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
- Héritage
-
SecureMessageTransportHelper
- Membres hérités
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)
Paramètres
objectToSecureTThe object to secure
xmlPublicKeystringThe minimum size of the public key must be 4096 bits
Retour
Paramètres de type
TThe type of the object to secure
RebuildSecureMessageTransport<T>(string, string)
Reverse the object transport
public static T RebuildSecureMessageTransport<T>(string jsonSecureMessageTransport, string xmlPrivateKey)
Paramètres
Retour
- T
Paramètres de type
T