Edytuj

Udostępnij za pośrednictwem


DataProtectionSecurityStateEncoder Class

Definition

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
Inheritance
DataProtectionSecurityStateEncoder

Remarks

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 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.

Constructors

DataProtectionSecurityStateEncoder()

Initializes a new instance of this class.

DataProtectionSecurityStateEncoder(Boolean, Byte[])

Initializes a new instance of this class.

DataProtectionSecurityStateEncoder(Boolean)

Initializes a new instance of this class.

Properties

UseCurrentUserProtectionScope

Gets a value that indicates whether to use the current user protection scope.

Methods

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.

(Inherited from Object)
GetEntropy()

Indicates the randomness of this encoder.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current DataProtectionSecurityStateEncoder instance.

Applies to