Redigeeri

Jagamisviis:


SessionSecurityTokenHandler.ApplyTransforms(Byte[], Boolean) Method

Definition

Applies the transforms specified by the Transforms property to either encode or decode the specified cookie.

protected:
 virtual cli::array <System::Byte> ^ ApplyTransforms(cli::array <System::Byte> ^ cookie, bool outbound);
protected virtual byte[] ApplyTransforms (byte[] cookie, bool outbound);
abstract member ApplyTransforms : byte[] * bool -> byte[]
override this.ApplyTransforms : byte[] * bool -> byte[]
Protected Overridable Function ApplyTransforms (cookie As Byte(), outbound As Boolean) As Byte()

Parameters

cookie
Byte[]

The cookie that will be transformed.

outbound
Boolean

true if the cookie should be encoded; false if the cookie should be decoded.

Returns

Byte[]

The encoded or decoded cookie.

Exceptions

The Transforms property is null.

Remarks

When encoding a cookie transforms are applied in the order in which they appear in the Transforms property. When decoding a cookie, they are applied in the reverse order.

Called from the WriteToken and ReadToken methods to encode and decode the cookie material.

Applies to