Table of Contents

Class Credentials

Namespace
The.Security
Assembly
Instagile.dll

Serialisable, plaintext data used to authenticate.

[MessagePackObject(false)]
public sealed class Credentials
Inheritance
Credentials
Inherited Members

Properties

EmailAddress

An email-based identity to be looked up in claim storage.

[Key(1)]
public string? EmailAddress { get; set; }

Property Value

string

KeyPIN

Unlocks a PKIAuthentication device to verify identity.

[Key(4)]
public string? KeyPIN { get; init; }

Property Value

string

OneTimeCode

Checked against a stored code by OneTimeCodeAuthentication to verify identity.

[Key(5)]
public string? OneTimeCode { get; set; }

Property Value

string

Password

Hashed by PasswordAuthentication to verify identity.

[Key(3)]
public string? Password { get; init; }

Property Value

string

PhoneNumber

A phone-based identity to be looked up in claim storage.

[Key(2)]
public string? PhoneNumber { get; set; }

Property Value

string

Username

The username of an IUserAccount.

[Key(0)]
public string? Username { get; init; }

Property 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.

WithUsername(string)

Creates new credentials, replacing any subject or identity data with the supplied username

public Credentials WithUsername(string username)

Parameters

username string

Returns

Credentials