Table of Contents

Class IamCredentials

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

The IAM authentication credentials for a User used when making calls to MyGeotab.

public sealed class IamCredentials : ICredentials
Inheritance
IamCredentials
Implements
Inherited Members

Constructors

IamCredentials(string, string?, string, bool)

Initializes a new instance of the IamCredentials class.

public IamCredentials(string userName, string? database, string userId, bool isMyAdminUser)

Parameters

userName string

The username.

database string

The database.

userId string

The user ID.

isMyAdminUser bool

Whether this is a MyAdmin user or not.

Properties

Database

Gets or sets the database name.

public string? Database { get; set; }

Property Value

string

the database name. string

IsMyAdminUser

Gets or sets a boolean saying whether this is a MyAdmin user.

public bool? IsMyAdminUser { get; set; }

Property Value

bool?

bool

UserId

Gets the IAM user ID.

public string? UserId { get; }

Property Value

string

The user's unique user ID in our IAM system.

UserName

Gets or sets the MyGeotab username.

public string? UserName { get; set; }

Property Value

string

string

Remarks

You should not modify the UserName in IamCredentials after it's been constructed.

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string