Beispiel #1
0
 /**
  * Creates a new instance with the specified character set.
  *
  * @param charset
  */
 public EncryptedJsonEncoder(Encoding charset, IEncryptionKeyHolder encryptionKeyHolder, IJsonHandler jsonHandler)
 {
     encoder                  = new LineEndStringEncoder(charset);
     this.charset             = charset;
     this.encryptionKeyHolder = encryptionKeyHolder;
     this.jsonHandler         = jsonHandler;
     StaticHandler.Core.Logger.Debug("Using charset {0} for encrypting", charset.EncodingName);
 }
Beispiel #2
0
 /**
  * Creates a new instance with the specified character set.
  *
  * @param charset
  */
 public EncryptedJSONDecoder(Encoding charset, IEncryptionKeyHolder encryptionKeyHolder, IJsonHandler jsonHandler) : base(charset)
 {
     this.charset             = charset;
     this.encryptionKeyHolder = encryptionKeyHolder;
     this.jsonHandler         = jsonHandler;
 }
Beispiel #3
0
 /**
  * Creates a new instance with the current system character set.
  */
 public EncryptedJsonEncoder(IEncryptionKeyHolder encryptionKeyHolder, IJsonHandler jsonHandler) : this(StaticHandler.encoding, encryptionKeyHolder, jsonHandler)
 {
 }
Beispiel #4
0
 /**
  * Creates a new instance with the current system character set.
  */
 public EncryptedJSONDecoder(IEncryptionKeyHolder encryptionKeyHolder, IJsonHandler jsonHandler) : this(StaticHandler.encoding, encryptionKeyHolder, jsonHandler)
 {
     StaticHandler.Core.Logger.Debug("Using charset {0} for decrypting", charset.EncodingName);
 }