public EncryptingTextWriter(TextWriter writer, IEncryptionMechanism encryptionMechanism, object encryptKey, SerializationState serializationState)
 {
     _writer = writer;
     _encryptionMechanism = encryptionMechanism;
     _encryptKey          = encryptKey;
     _serializationState  = serializationState;
 }
Пример #2
0
        public XSerializerXmlReader(XmlReader reader, IEncryptionMechanism encryptionMechanism, object encryptKey, SerializationState serializationState)
        {
            _primaryReader = reader;
            _currentReader = reader;

            _encryptionMechanism = encryptionMechanism;
            _encryptKey          = encryptKey;
            _serializationState  = serializationState;
        }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JsonObject"/> class.
 /// </summary>
 /// <param name="dateTimeHandler">The object that determines how date time values are parsed.</param>
 /// <param name="encryptionMechanism">The object the performs encryption operations.</param>
 /// <param name="encryptKey">A key optionally used by the encryption mechanism during encryption operations.</param>
 /// <param name="serializationState">An object optionally used by the encryption mechanism to carry state across multiple encryption operations.</param>
 public JsonObject(
     IDateTimeHandler dateTimeHandler         = null,
     IEncryptionMechanism encryptionMechanism = null,
     object encryptKey = null,
     SerializationState serializationState = null)
     : this(new JsonSerializeOperationInfo
 {
     DateTimeHandler = dateTimeHandler ?? DateTimeHandler.Default,
     EncryptionMechanism = encryptionMechanism,
     EncryptKey = encryptKey,
     SerializationState = serializationState
 })
 {
 }
Пример #4
0
 private XSerializerXmlReader(string xml, IEncryptionMechanism encryptionMechanism, object encryptKey, SerializationState serializationState)
     : this(new XmlTextReader(new StringReader(xml)), encryptionMechanism, encryptKey, serializationState)
 {
 }