Dela via


UsernamePasswordCredentials Class

Definition

The credentials for authentication mode UsernamePassword.

public class UsernamePasswordCredentials : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.DeviceRegistry.Models.UsernamePasswordCredentials>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.DeviceRegistry.Models.UsernamePasswordCredentials>
type UsernamePasswordCredentials = class
    interface IJsonModel<UsernamePasswordCredentials>
    interface IPersistableModel<UsernamePasswordCredentials>
Public Class UsernamePasswordCredentials
Implements IJsonModel(Of UsernamePasswordCredentials), IPersistableModel(Of UsernamePasswordCredentials)
Inheritance
UsernamePasswordCredentials
Implements

Constructors

UsernamePasswordCredentials(String, String)

Initializes a new instance of UsernamePasswordCredentials.

Properties

PasswordReference

A reference to secret containing the password.

UsernameReference

A reference to secret containing the username.

Explicit Interface Implementations

IJsonModel<UsernamePasswordCredentials>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<UsernamePasswordCredentials>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<UsernamePasswordCredentials>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<UsernamePasswordCredentials>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<UsernamePasswordCredentials>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to