Table of Contents

Class Identity

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

Constructors

Identity(string, Realm)

[SerializationConstructor]
public Identity(string username, Realm realm)

Parameters

username string
realm Realm

Fields

Realm

The source of the identity.

[Key(1)]
public readonly Realm Realm

Field Value

Realm

Username

This is a unique identifier, but not necessarily the same as the username used to login.

[Key(0)]
public readonly string Username

Field Value

string

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.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.