WCF NetTcpBinding Transport安全模式(1)NetTcpSecurity定義
默認情況下,NetTcpBinding會生成一個運行時通信堆棧,該堆棧使用傳輸安全。NetTcpBinding類共有四個構造函數,分別如下:q &
WCF NetTcpBinding Transport安全模式(2) 默認安全配置
新建一個類庫名為“WcfSecurityExampleServiceLibrary”的類庫項目,添加如代碼清單11-10所
WCF NetTcpBinding Transport安全模式(3)
ProtectionLevel設置保護級別書接上文,是哪一項配置使得WCF對傳輸的消息進行加密操作了呢?繼續修改 配置文件,客戶端配置文件如代碼清
WCF NetTcpBinding Transport安全模式(4)
ClientCredentialType證書驗證模式----基本配置在Transport安全模式下,客戶端憑據支持三種類型:None、Window
WCF NetTcpBinding Transport安全模式(5)
ClientCredentialType證書驗證模式----None驗證模式需要說明的是,和服務器端證書配置在<serviceBehavio
WCF NetTcpBinding Transport安全模式(6)
ClientCredentialType證書驗證模式---- PeerTrust驗證模式當證書驗證模式設置為“PeerTrust&rd
WCF NetTcpBinding Transport安全模式(7)
ClientCredentialType證書驗證模式---- ChainTrust驗證模式ChainTrust驗證模式使用證書鏈來驗證 X.509
WCF NetTcpBinding Transport安全模式(8)
ClientCredentialType證書驗證模式---- PeerOrChainTrust驗證模式PeerOrChainTrust驗證模式驗證