CookieAuthenticationOptions.TicketDataFormat Property

The TicketDataFormat is used to protect and unprotect the identity and other properties which are stored in the cookie value. If it is not provided a default data handler is created using the data protection service contained in the IAppBuilder.Properties. The default data protection service is based on machine key when running on ASP.NET, and on DPAPI when running in a different process.

Namespace:  Microsoft.Owin.Security.Cookies
Assembly:  Microsoft.Owin.Security.Cookies (in Microsoft.Owin.Security.Cookies.dll)

Syntax

'Declaration
Public Property TicketDataFormat As ISecureDataFormat(Of AuthenticationTicket)
    Get 
    Set
'Usage
Dim instance As CookieAuthenticationOptions 
Dim value As ISecureDataFormat(Of AuthenticationTicket)

value = instance.TicketDataFormat

instance.TicketDataFormat = value
public ISecureDataFormat<AuthenticationTicket> TicketDataFormat { get; set; }
public:
property ISecureDataFormat<AuthenticationTicket^>^ TicketDataFormat {
    ISecureDataFormat<AuthenticationTicket^>^ get ();
    void set (ISecureDataFormat<AuthenticationTicket^>^ value);
}
member TicketDataFormat : ISecureDataFormat<AuthenticationTicket> with get, set
function get TicketDataFormat () : ISecureDataFormat<AuthenticationTicket>
function set TicketDataFormat (value : ISecureDataFormat<AuthenticationTicket>)

Property Value

Type: Microsoft.Owin.Security.ISecureDataFormat<AuthenticationTicket>

See Also

Reference

CookieAuthenticationOptions Class

Microsoft.Owin.Security.Cookies Namespace