DataProtectionSecurityStateEncoder 类
定义
使用 Windows DataProtection API 功能提供安全状态的编码和解码机制。Provides encoding and decoding mechanisms for the security state using the Windows DataProtection API functionality.
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
- 继承
注解
在发送消息时,此类用于对由有 状态安全上下文令牌 表示的安全状态进行编码,并用于在消息到达接收方时解码安全上下文。This class is used for encoding the security state as represented by a Stateful Security Context Token when the message is sent, and for decoding the security context when the message arrives at a recipient.
编码可以位于当前用户范围(只有以用户帐户身份运行的进程可以解码安全状态),也可以位于本地计算机范围(运行在计算机上的所有进程都可以解码安全状态)。The encoding can either be in the current user scope (whereby only processes running as the user account can decode the security state) or it can be in the local machine scope (whereby all processes running on the machine can decode the security state). 默认情况下,编码位于当前用户范围。By default, the encoding is in the current user scope.
当在颁发给客户端的有 状态安全上下文令牌 中发送安全状态时,服务器将使用此类。This class is used by the server when sending the security state in the Stateful Security Context Token issued to the client.
基于 DataProtection 范围的 CurrentUser 需要当前用户具有用户配置文件。DataProtection based on the CurrentUser scope requires the current user to have a user profile. 如果用户有漫游配置文件,则由运行在一台计算机上的用户进程编码的安全状态可以由运行在另一台计算机上的用户进程解码。If the user has a roaming profile, then the security state encoded by the user process running on one machine can be decoded by a user process running on a different machine.
构造函数
| DataProtectionSecurityStateEncoder() |
初始化此类的新实例。Initializes a new instance of this class. |
| DataProtectionSecurityStateEncoder(Boolean) |
初始化此类的新实例。Initializes a new instance of this class. |
| DataProtectionSecurityStateEncoder(Boolean, Byte[]) |
初始化此类的新实例。Initializes a new instance of this class. |
属性
| UseCurrentUserProtectionScope |
获取一个值,该值指示是否使用当前用户保护范围。Gets a value that indicates whether to use the current user protection scope. |
方法
| DecodeSecurityState(Byte[]) |
解码安全状态。Decodes the security state. |
| EncodeSecurityState(Byte[]) |
编码安全状态。Encodes the security state. |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetEntropy() |
指示此编码器的随机性。Indicates the randomness of this encoder. |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前 DataProtectionSecurityStateEncoder 实例的字符串。Returns a string that represents the current DataProtectionSecurityStateEncoder instance. |