public MsmqTransportSecurity()
 {
     this.msmqAuthenticationMode = MsmqDefaults.MsmqAuthenticationMode;
     this.msmqEncryptionAlgorithm = MsmqDefaults.MsmqEncryptionAlgorithm;
     this.msmqHashAlgorithm = MsmqDefaults.MsmqSecureHashAlgorithm;
     this.msmqProtectionLevel = MsmqDefaults.MsmqProtectionLevel;
 }
 public MsmqTransportSecurity()
 {
     this.msmqAuthenticationMode  = MsmqDefaults.MsmqAuthenticationMode;
     this.msmqEncryptionAlgorithm = MsmqDefaults.MsmqEncryptionAlgorithm;
     this.msmqHashAlgorithm       = MsmqDefaults.MsmqSecureHashAlgorithm;
     this.msmqProtectionLevel     = MsmqDefaults.MsmqProtectionLevel;
 }
 public static bool IsDefined(MsmqEncryptionAlgorithm algorithm)
 {
     if (algorithm != MsmqEncryptionAlgorithm.RC4Stream)
     {
         return(algorithm == MsmqEncryptionAlgorithm.Aes);
     }
     return(true);
 }
 public MsmqTransportSecurity(MsmqTransportSecurity other)
 {
     if (null == other)
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("other");
     this.msmqAuthenticationMode = other.MsmqAuthenticationMode;
     this.msmqEncryptionAlgorithm = other.MsmqEncryptionAlgorithm;
     this.msmqHashAlgorithm = other.MsmqSecureHashAlgorithm;
     this.msmqProtectionLevel = other.MsmqProtectionLevel;
 }
 public MsmqTransportSecurity(MsmqTransportSecurity other)
 {
     if (null == other)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("other");
     }
     this.msmqAuthenticationMode  = other.MsmqAuthenticationMode;
     this.msmqEncryptionAlgorithm = other.MsmqEncryptionAlgorithm;
     this.msmqHashAlgorithm       = other.MsmqSecureHashAlgorithm;
     this.msmqProtectionLevel     = other.MsmqProtectionLevel;
 }
 public static int ToInt32(MsmqEncryptionAlgorithm algorithm)
 {
     switch (algorithm)
     {
         case MsmqEncryptionAlgorithm.RC4Stream:
             return UnsafeNativeMethods.CALG_RC4;
         case MsmqEncryptionAlgorithm.Aes:
             return UnsafeNativeMethods.CALG_AES;
         default:
             return -1;
     }
 }
        public static int ToInt32(MsmqEncryptionAlgorithm algorithm)
        {
            switch (algorithm)
            {
            case MsmqEncryptionAlgorithm.RC4Stream:
                return(0x6801);

            case MsmqEncryptionAlgorithm.Aes:
                return(0x6611);
            }
            return(-1);
        }
Ejemplo n.º 8
0
        public static int ToInt32(MsmqEncryptionAlgorithm algorithm)
        {
            switch (algorithm)
            {
            case MsmqEncryptionAlgorithm.RC4Stream:
                return(UnsafeNativeMethods.CALG_RC4);

            case MsmqEncryptionAlgorithm.Aes:
                return(UnsafeNativeMethods.CALG_AES);

            default:
                return(-1);
            }
        }
 public static bool IsDefined(MsmqEncryptionAlgorithm algorithm)
 {
     return algorithm == MsmqEncryptionAlgorithm.RC4Stream || algorithm == MsmqEncryptionAlgorithm.Aes;
 }