DataProtectionSecurityStateEncoder 类    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用 Windows DataProtection API 功能提供安全状态的编码和解码机制。
public ref class DataProtectionSecurityStateEncoder : System::ServiceModel::Security::SecurityStateEncoder
	public class DataProtectionSecurityStateEncoder : System.ServiceModel.Security.SecurityStateEncoder
	type DataProtectionSecurityStateEncoder = class
    inherit SecurityStateEncoder
	Public Class DataProtectionSecurityStateEncoder
Inherits SecurityStateEncoder
		- 继承
 
注解
此类用于编码发送消息时有状态安全上下文令牌表示的安全状态,以及当消息到达收件人时解码安全上下文。
编码可以位于当前用户范围(只有以用户帐户身份运行的进程可以解码安全状态),也可以位于本地计算机范围(运行在计算机上的所有进程都可以解码安全状态)。 默认情况下,编码位于当前用户范围。
在发送到客户端的有状态安全上下文令牌中发送安全状态时, 服务器会使用 此类。
基于 DataProtection 范围的 CurrentUser 需要当前用户具有用户配置文件。 如果用户有漫游配置文件,则由运行在一台计算机上的用户进程编码的安全状态可以由运行在另一台计算机上的用户进程解码。
构造函数
| DataProtectionSecurityStateEncoder() |  
		 初始化此类的新实例。  | 
        	
| DataProtectionSecurityStateEncoder(Boolean) |  
		 初始化此类的新实例。  | 
        	
| DataProtectionSecurityStateEncoder(Boolean, Byte[]) |  
		 初始化此类的新实例。  | 
        	
属性
| UseCurrentUserProtectionScope |  
		 获取一个值,该值指示是否使用当前用户保护范围。  | 
        	
方法
| DecodeSecurityState(Byte[]) |  
		 解码安全状态。  | 
        	
| EncodeSecurityState(Byte[]) |  
		 编码安全状态。  | 
        	
| Equals(Object) | 
		   确定指定对象是否等于当前对象。 (继承自 Object) | 
        	
| GetEntropy() |  
		 指示此编码器的随机性。  | 
        	
| GetHashCode() | 
		   作为默认哈希函数。 (继承自 Object) | 
        	
| GetType() | 
		   获取当前实例的 Type。 (继承自 Object) | 
        	
| MemberwiseClone() | 
		   创建当前 Object 的浅表副本。 (继承自 Object) | 
        	
| ToString() |  
		 返回表示当前 DataProtectionSecurityStateEncoder 实例的字符串。  |