Share via


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 X509Certificate2 object, or should be available in the certificate store of the system where the client will be authenticated from.

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()

The Certificate managed resource should be disposed by the user. This library intentionally does not dispose it here since the user might want to reuse the certificate instance elsewhere for some other operation.

Populate(IotHubConnectionStringBuilder)

Populates a supplied instance based on the properties of the current instance.

Applies to