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
- 繼承
備註
此類別用於在訊息發送時編碼安全狀態(以 有狀態安全情境令牌 表示)以及在訊息抵達接收者時解碼安全情境。
編碼可以是在目前的使用者範圍內(只有以使用者帳號運作的程序才能解碼安全狀態),也可以在本地機器範圍內(所有在機器上執行的程序都能解碼安全狀態)。 預設情況下,編碼屬於目前的使用者範圍。
此類別由伺服器在發送給用戶端的 狀態安全情境令牌(Stateful Security Context Token )中的安全狀態時使用。
DataProtection 根據範圍, CurrentUser 目前使用者必須擁有使用者個人檔案。 如果使用者有漫遊設定檔,則在一台機器上執行的使用者程序所編碼的安全狀態,可以被另一台機器上執行的使用者程序解碼。
建構函式
| 名稱 | Description |
|---|---|
| DataProtectionSecurityStateEncoder() |
初始化此類別的新實例。 |
| DataProtectionSecurityStateEncoder(Boolean, Byte[]) |
初始化此類別的新實例。 |
| DataProtectionSecurityStateEncoder(Boolean) |
初始化此類別的新實例。 |
屬性
| 名稱 | Description |
|---|---|
| UseCurrentUserProtectionScope |
會獲得一個值,指示是否使用目前的使用者保護範圍。 |
方法
| 名稱 | Description |
|---|---|
| DecodeSecurityState(Byte[]) |
解碼安全狀態。 |
| EncodeSecurityState(Byte[]) |
編碼安全狀態。 |
| Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
| GetEntropy() |
表示此編碼器的隨機性。 |
| GetHashCode() |
做為預設哈希函式。 (繼承來源 Object) |
| GetType() |
取得目前實例的 Type。 (繼承來源 Object) |
| MemberwiseClone() |
建立目前 Object的淺層複本。 (繼承來源 Object) |
| ToString() |
回傳一個代表當前 DataProtectionSecurityStateEncoder 實例的字串。 |