Table of Contents

Class UserPasswordHash

Namespace
Geotab.Checkmate.ObjectModel
Assembly
Geotab.Checkmate.ObjectModel.dll

A password hash. May represent a currently valid hash, or could represent a previous password hash that we are storing to prevent duplication. For internal use in the User bridge.

public class UserPasswordHash : Entity, IEntity, IComparable, IIdentifiable, IDateTimeProvider
Inheritance
UserPasswordHash
Implements
Inherited Members

Constructors

UserPasswordHash()

Initializes a new instance of the UserPasswordHash class.

public UserPasswordHash()

UserPasswordHash(UserPasswordHash)

Initializes a new instance of the UserPasswordHash class.

public UserPasswordHash(UserPasswordHash passwordHash)

Parameters

passwordHash UserPasswordHash

The UserPasswordHash that we are copying.

UserPasswordHash(string?, string?, DateTime?, User?)

Initializes a new instance of the UserPasswordHash class.

public UserPasswordHash(string? password, string? hash, DateTime? dateTime, User? user)

Parameters

password string

The user's password.

hash string

The hashed password string.

dateTime DateTime?

The DateTime that this password was set.

user User

The User that this hash applies to.

Properties

DateTime

Gets or sets the time this password was set.

public DateTime? DateTime { get; set; }

Property Value

DateTime?

The time this password was set.

Hash

Gets or sets the password hash.

public string? Hash { get; set; }

Property Value

string

The password hash.

Password

Gets or sets the password string. Used for checking for duplicates; wil be null if read from database.

public string? Password { get; set; }

Property Value

string

The password string. Used for checking for duplicates; wil be null if read from database.

User

Gets or sets a User.

public User? User { get; set; }

Property Value

User

A User.

Methods

Clone()

Creates a new object that is a copy of the current instance.

public override IEntity Clone()

Returns

IEntity

A new object that is a copy of this instance.