Delen via


TicketSerializer Class

Definition

Serializes and deserializes AuthenticationTicket instances.

public ref class TicketSerializer : Microsoft::AspNetCore::Authentication::IDataSerializer<Microsoft::AspNetCore::Authentication::AuthenticationTicket ^>
public class TicketSerializer : Microsoft.AspNetCore.Authentication.IDataSerializer<Microsoft.AspNetCore.Authentication.AuthenticationTicket>
type TicketSerializer = class
    interface IDataSerializer<AuthenticationTicket>
Public Class TicketSerializer
Implements IDataSerializer(Of AuthenticationTicket)
Inheritance
TicketSerializer
Implements

Constructors

TicketSerializer()

Properties

Default

Gets the default implementation for TicketSerializer.

Methods

Deserialize(Byte[])

Deserializes the specified data as an instance of type TModel.

Read(BinaryReader)

Reads an AuthenticationTicket.

ReadClaim(BinaryReader, ClaimsIdentity)

Reads a Claim and adds it to the specified identity.

ReadIdentity(BinaryReader)

Reads a ClaimsIdentity from a BinaryReader.

Serialize(AuthenticationTicket)

Serializes the specified model.

Write(BinaryWriter, AuthenticationTicket)

Writes the ticket using the specified writer.

WriteClaim(BinaryWriter, Claim) System.Object.WriteClaim(System.IO.BinaryWriter,System.Security.Claims.Claim)
WriteIdentity(BinaryWriter, ClaimsIdentity)

Writes the specified identity.

Applies to