public MsmqTransportSecurity() { this.msmqAuthenticationMode = MsmqDefaults.MsmqAuthenticationMode; this.msmqEncryptionAlgorithm = MsmqDefaults.MsmqEncryptionAlgorithm; this.msmqHashAlgorithm = MsmqDefaults.MsmqSecureHashAlgorithm; this.msmqProtectionLevel = MsmqDefaults.MsmqProtectionLevel; }
public static bool IsDefined(MsmqSecureHashAlgorithm algorithm) { return algorithm == MsmqSecureHashAlgorithm.MD5 || algorithm == MsmqSecureHashAlgorithm.Sha1 || algorithm == MsmqSecureHashAlgorithm.Sha256 || algorithm == MsmqSecureHashAlgorithm.Sha512; }
public static bool IsDefined(MsmqSecureHashAlgorithm algorithm) { return(algorithm == MsmqSecureHashAlgorithm.MD5 || algorithm == MsmqSecureHashAlgorithm.Sha1 || algorithm == MsmqSecureHashAlgorithm.Sha256 || algorithm == MsmqSecureHashAlgorithm.Sha512); }
public static bool IsDefined(MsmqSecureHashAlgorithm algorithm) { if (((algorithm != MsmqSecureHashAlgorithm.MD5) && (algorithm != MsmqSecureHashAlgorithm.Sha1)) && (algorithm != MsmqSecureHashAlgorithm.Sha256)) { return (algorithm == MsmqSecureHashAlgorithm.Sha512); } return true; }
public static bool IsDefined(MsmqSecureHashAlgorithm algorithm) { if (((algorithm != MsmqSecureHashAlgorithm.MD5) && (algorithm != MsmqSecureHashAlgorithm.Sha1)) && (algorithm != MsmqSecureHashAlgorithm.Sha256)) { return(algorithm == MsmqSecureHashAlgorithm.Sha512); } 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(MsmqSecureHashAlgorithm algorithm) { switch (algorithm) { case MsmqSecureHashAlgorithm.MD5: return UnsafeNativeMethods.CALG_MD5; case MsmqSecureHashAlgorithm.Sha1: return UnsafeNativeMethods.CALG_SHA1; case MsmqSecureHashAlgorithm.Sha256: return UnsafeNativeMethods.CALG_SHA_256; case MsmqSecureHashAlgorithm.Sha512: return UnsafeNativeMethods.CALG_SHA_512; default: return -1; } }
public static int ToInt32(MsmqSecureHashAlgorithm algorithm) { switch (algorithm) { case MsmqSecureHashAlgorithm.MD5: return 0x8003; case MsmqSecureHashAlgorithm.Sha1: return 0x8004; case MsmqSecureHashAlgorithm.Sha256: return 0x800c; case MsmqSecureHashAlgorithm.Sha512: return 0x800e; } return -1; }
public static int ToInt32(MsmqSecureHashAlgorithm algorithm) { switch (algorithm) { case MsmqSecureHashAlgorithm.MD5: return(0x8003); case MsmqSecureHashAlgorithm.Sha1: return(0x8004); case MsmqSecureHashAlgorithm.Sha256: return(0x800c); case MsmqSecureHashAlgorithm.Sha512: return(0x800e); } return(-1); }
public static int ToInt32(MsmqSecureHashAlgorithm algorithm) { switch (algorithm) { case MsmqSecureHashAlgorithm.MD5: return(UnsafeNativeMethods.CALG_MD5); case MsmqSecureHashAlgorithm.Sha1: return(UnsafeNativeMethods.CALG_SHA1); case MsmqSecureHashAlgorithm.Sha256: return(UnsafeNativeMethods.CALG_SHA_256); case MsmqSecureHashAlgorithm.Sha512: return(UnsafeNativeMethods.CALG_SHA_512); default: return(-1); } }