Table of Contents

Class OperationTicket

Namespace
The.Security
Assembly
Instagile.dll
[MessagePackObject(false)]
public sealed class OperationTicket
Inheritance
OperationTicket
Inherited Members

Constructors

OperationTicket(Identity, byte[]?, string, string, byte[]?)

public OperationTicket(Identity subject, byte[]? token, string appVersion, string environmentName, byte[]? sessionTicket)

Parameters

subject Identity
token byte[]
appVersion string
environmentName string
sessionTicket byte[]

OperationTicket(Identity, byte[]?, string, string, byte[]?, byte[]?, byte[]?)

[SerializationConstructor]
public OperationTicket(Identity subject, byte[]? token, string appVersion, string environmentName, byte[]? sessionTicket, byte[]? sealedChallenge, byte[]? challengeAnswer)

Parameters

subject Identity
token byte[]
appVersion string
environmentName string
sessionTicket byte[]
sealedChallenge byte[]
challengeAnswer byte[]

Fields

AppVersion

[Key(2)]
public readonly string AppVersion

Field Value

string

ChallengeAnswer

The client's answer to the challenge in SealedChallenge.

[Key(6)]
public readonly byte[]? ChallengeAnswer

Field Value

byte[]

EnvironmentName

[Key(3)]
public readonly string EnvironmentName

Field Value

string

SealedChallenge

A session challenge sealed by the server, returned with ChallengeAnswer when connecting.

[Key(5)]
public readonly byte[]? SealedChallenge

Field Value

byte[]

SessionTicket

A session ticket sealed by the server, returned with each request so the server can resume the session.

[Key(4)]
public readonly byte[]? SessionTicket

Field Value

byte[]

Subject

This is an "input identity" in which the Username is produced directly by an authenticator, rather than resolved from an account

[Key(0)]
public readonly Identity Subject

Field Value

Identity

Token

[Key(1)]
public readonly byte[]? Token

Field Value

byte[]

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

WithChallengeAnswer(byte[], byte[])

public OperationTicket WithChallengeAnswer(byte[] sealedChallenge, byte[] challengeAnswer)

Parameters

sealedChallenge byte[]
challengeAnswer byte[]

Returns

OperationTicket

WithSessionTicket(byte[]?)

public OperationTicket WithSessionTicket(byte[]? sessionTicket)

Parameters

sessionTicket byte[]

Returns

OperationTicket

WithToken(byte[]?)

public OperationTicket WithToken(byte[]? token)

Parameters

token byte[]

Returns

OperationTicket