//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ namespace System.IdentityModel { /// /// Applies a reversible data transform to cookie data. /// public abstract class CookieTransform { /// /// Initializes a new instance of the class. /// protected CookieTransform() { } /// /// Reverses the transform. /// /// The encoded form of the cookie. /// The decoded byte array. public abstract byte[] Decode( byte[] encoded ); /// /// Applies the transform. /// /// The byte array to be encoded. /// The encoded cookie. public abstract byte[] Encode( byte[] value ); } }