Class RijndaelSerializer
Serializes and deserializes an object, or an entire graph of connected objects, encrypted according to the Rijndael algorithm.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Namespace: IRM.Messaging
Assembly: IRM.dll
Syntax
[Obsolete]
public class RijndaelSerializer : ISerialize, IDeserializeUntyped
Constructors
RijndaelSerializer(ISerialize, Byte[])
Creates a new instance of RijndaelSerializer wrapping the inner
serializer.
Declaration
public RijndaelSerializer(ISerialize inner, byte[] encryptionKey)
Parameters
ISerialize
inner
The ISerialize to be wrapped in an encrypted stream. |
System.Byte[]
encryptionKey
The secret key used for the symmetric encryption and decryption. |
Methods
Deserialize(Stream, String)
De-serializes an object from a System.IO.Stream.
Declaration
public object Deserialize(Stream input, string typeName)
Parameters
System.IO.Stream
input
The stream with the serialized object. |
String
typeName
The full name of the type. |
Returns
Object
The de-serialized object. |
Implements
Deserialize<T>(Stream)
De-serializes an object from a System.IO.Stream.
Declaration
public virtual T Deserialize<T>(Stream input)
Parameters
System.IO.Stream
input
The stream with the serialized object. |
Returns
T
The de-serialized object. |
Type Parameters
T
The type of object to de-serialize. |
Implements
Serialize<T>(Stream, T)
Serializes an object to a System.IO.Stream.
Declaration
public virtual void Serialize<T>(Stream output, T graph)
Parameters
System.IO.Stream
output
The stream to serialize the object to. |
T
graph
The object to serialize. |
Type Parameters
T
The type of object to serialize. |