你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DeviceAuthenticationWithX509Certificate Class

Definition

Authentication method that uses a X.509 certificate

public sealed class DeviceAuthenticationWithX509Certificate : IDisposable, Microsoft.Azure.Devices.Client.IAuthenticationMethod
type DeviceAuthenticationWithX509Certificate = class
    interface IAuthenticationMethod
    interface IDisposable
Public NotInheritable Class DeviceAuthenticationWithX509Certificate
Implements IAuthenticationMethod, IDisposable
Inheritance
DeviceAuthenticationWithX509Certificate
Implements

Constructors

DeviceAuthenticationWithX509Certificate(String, X509Certificate2, X509Certificate2Collection)

Initializes a new instance of the DeviceAuthenticationWithX509Certificate class.

Properties

Certificate

Gets or sets the X.509 certificate associated with this device. The private key should be available in the System.Security.Cryptography.X509Certificates.X509Certificate2 object, or should be loaded into the system where the DeviceClient will be used. />

ChainCertificates

Full chain of certificates from the one used to sign the device certificate to the one uploaded to the service. Private keys are not required for these certificates. This is only supported on AMQP_Tcp_Only and Mqtt_Tcp_Only

DeviceId

Gets or sets the device identifier.

Methods

Dispose()

Dispose the X509 certificate associated with this authentication method.

Populate(IotHubConnectionStringBuilder)

Populates an IotHubConnectionStringBuilder instance based on the properties of the current instance.

Applies to