Edit

Share via


ProtectedDataCookieTransform Class

Definition

Provides cookie integrity and confidentiality by using the ProtectedData class. This class cannot be inherited.

C#
public sealed class ProtectedDataCookieTransform : System.IdentityModel.CookieTransform
Inheritance
ProtectedDataCookieTransform

Remarks

Due to the nature of the ProtectedData class, cookies which use this transform can only be read by the same computer that wrote them. As such, this transform is not appropriate for use in applications that run on a web server farm.

Constructors

ProtectedDataCookieTransform()

Creates a new instance of the ProtectedDataCookieTransform class.

Methods

Decode(Byte[])

Verifies data protection and returns the decrypted data.

Encode(Byte[])

Protects (encrypts) the specified data.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
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 object.

(Inherited from Object)

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also