DeviceAuthenticationWithX509Certificate Class

Definition

Authentication method that uses a X.509 certificate

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

Constructors

DeviceAuthenticationWithX509Certificate(String, X509Certificate2)
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