ApplyTransforms Method

SessionSecurityTokenHandler.ApplyTransforms Method (Byte[], Boolean)

.NET Framework 4.6 and 4.5

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

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

protected virtual byte[] ApplyTransforms(
	byte[] cookie,
	bool outbound


Type: System.Byte[]

The cookie that will be transformed.

Type: System.Boolean

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

Return Value

Type: System.Byte[]

The encoded or decoded cookie.

Exception Condition

The Transforms property is null.

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 methods to encode and decode the cookie material.

.NET Framework
Available since 4.5
Return to top
© 2015 Microsoft