RequestTokenSerializer Class

Serializes and deserializes Twitter request and access tokens so that they can be used by other application components.

Namespace
Microsoft.AspNetCore.Authentication.Twitter
Assemblies
  • Microsoft.AspNetCore.Authentication.Twitter

Syntax

public class RequestTokenSerializer : IDataSerializer<RequestToken>
class Microsoft.AspNetCore.Authentication.Twitter.RequestTokenSerializer

Methods

Deserialize(System.Byte[])

Deserializes a request token.

Arguments:data (System.Byte<System.Byte>[]) – A byte array containing the serialized token
Return type:Microsoft.AspNetCore.Authentication.Twitter.RequestToken
Returns:The Twitter request token
public virtual RequestToken Deserialize(byte[] data)
Read(System.IO.BinaryReader)

Reads a Twitter request token from a series of bytes. Used by the Microsoft.AspNetCore.Authentication.Twitter.RequestTokenSerializer.Deserialize(System.Byte[]) method.

Arguments:reader (System.IO.BinaryReader) – The reader to use in reading the token bytes
Return type:Microsoft.AspNetCore.Authentication.Twitter.RequestToken
Returns:The token
public static RequestToken Read(BinaryReader reader)
Serialize(Microsoft.AspNetCore.Authentication.Twitter.RequestToken)

Serialize a request token.

Arguments:model (Microsoft.AspNetCore.Authentication.Twitter.RequestToken) – The token to serialize
Return type:System.Byte<System.Byte>[]
Returns:A byte array containing the serialized token
public virtual byte[] Serialize(RequestToken model)
Write(System.IO.BinaryWriter, Microsoft.AspNetCore.Authentication.Twitter.RequestToken)

Writes a Twitter request token as a series of bytes. Used by the Microsoft.AspNetCore.Authentication.Twitter.RequestTokenSerializer.Serialize(Microsoft.AspNetCore.Authentication.Twitter.RequestToken) method.

Arguments:
public static void Write(BinaryWriter writer, RequestToken token)