Class Credentials
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
KeyPIN
Unlocks a PKIAuthentication device to verify identity.
[Key(4)]
public string? KeyPIN { get; init; }
Property Value
OneTimeCode
Checked against a stored code by OneTimeCodeAuthentication to verify identity.
[Key(5)]
public string? OneTimeCode { get; set; }
Property Value
Password
Hashed by PasswordAuthentication to verify identity.
[Key(3)]
public string? Password { get; init; }
Property Value
PhoneNumber
A phone-based identity to be looked up in claim storage.
[Key(2)]
public string? PhoneNumber { get; set; }
Property Value
Username
The username of an IUserAccount.
[Key(0)]
public string? Username { get; init; }
Property Value
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
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
usernamestring