DataProtectionSecurityStateEncoder 類別

定義

使用 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
繼承
DataProtectionSecurityStateEncoder

備註

這個類別用於編碼當訊息傳送時由 具狀態安全性內容權杖 所代表的安全性狀態,以及在訊息送達收件者時解碼安全性內容。

編碼作業可以在目前使用者的範圍中進行 (因此這時只有以該使用者帳戶身分執行的處理序可以解碼安全性狀態),也可以在本機電腦 (Local Machine) 的範圍中進行 (因此這時所有執行在此電腦上的處理序都可以解碼安全性狀態)。 根據預設,編碼作業會在目前使用者的範圍中進行。

當傳送發給用戶端之 具狀態安全性內容權杖 中的安全性狀態時,伺服器會使用此類別。

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 執行個體的字串。

適用於