Configuration class for TripleDesMessageInterceptor
 /// <summary>
 /// Initializes a new instance of the <see cref="TripleDesMessageInterceptor" /> class.
 /// </summary>
 /// <param name="configuration">The configuration.</param>
 public TripleDesMessageInterceptor(TripleDesMessageInterceptorConfiguration configuration)
 {
     _configuration = configuration;
 }
示例#2
0
 public ConsoleExecuteResult EnableDes(string key = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", string iv = "aaaaaaaaaaa=")
 {
     Des = true;
     DesConfiguration = new TripleDesMessageInterceptorConfiguration(Convert.FromBase64String(key), Convert.FromBase64String(iv));
     return new ConsoleExecuteResult("triple des encryption has been enabled");
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TripleDesMessageInterceptor" /> class.
 /// </summary>
 /// <param name="configuration">The configuration.</param>
 public TripleDesMessageInterceptor(TripleDesMessageInterceptorConfiguration configuration)
 {
     _configuration = configuration;
     DisplayName    = "TripleDes";
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TripleDesMessageInterceptor" /> class.
 /// </summary>
 /// <param name="configuration">The configuration.</param>
 public TripleDesMessageInterceptor(TripleDesMessageInterceptorConfiguration configuration)
 {
     _configuration = configuration;
 }