Partilhar via


UserAuthentication Class

Definition

Definition of the client authentication mechanism to the server.

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

Constructors

UserAuthentication(UserAuthenticationMode)

Initializes a new instance of UserAuthentication.

Properties

Mode

Defines the mode to authenticate the user of the client at the server.

UsernamePasswordCredentials

Defines the username and password references when UsernamePassword user authentication mode is selected.

X509CredentialsCertificateReference

A reference to secret containing the certificate and private key (e.g. stored as .der/.pem or .der/.pfx).

Explicit Interface Implementations

IJsonModel<UserAuthentication>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<UserAuthentication>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<UserAuthentication>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<UserAuthentication>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<UserAuthentication>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to