Configuration class for TripleDesMessageInterceptor
コード例 #1
0
 /// <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");
 }
コード例 #3
0
 /// <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";
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TripleDesMessageInterceptor" /> class.
 /// </summary>
 /// <param name="configuration">The configuration.</param>
 public TripleDesMessageInterceptor(TripleDesMessageInterceptorConfiguration configuration)
 {
     _configuration = configuration;
 }