Share via


DeviceAuthenticationWithTpm Constructors

Definition

Overloads

DeviceAuthenticationWithTpm(String, SecurityProviderTpm)

Initializes a new instance of the DeviceAuthenticationWithTpm class with default time to live of 1 hour and default buffer percentage value of 15.

DeviceAuthenticationWithTpm(String, SecurityProviderTpm, Int32, Int32)

Initializes a new instance of the DeviceAuthenticationWithTpm class.

DeviceAuthenticationWithTpm(String, SecurityProviderTpm)

Initializes a new instance of the DeviceAuthenticationWithTpm class with default time to live of 1 hour and default buffer percentage value of 15.

public DeviceAuthenticationWithTpm(string deviceId, Microsoft.Azure.Devices.Shared.SecurityProviderTpm securityProvider);
new Microsoft.Azure.Devices.Client.DeviceAuthenticationWithTpm : string * Microsoft.Azure.Devices.Shared.SecurityProviderTpm -> Microsoft.Azure.Devices.Client.DeviceAuthenticationWithTpm
Public Sub New (deviceId As String, securityProvider As SecurityProviderTpm)

Parameters

deviceId
System.String

Device Identifier.

securityProvider
Microsoft.Azure.Devices.Shared.SecurityProviderTpm

Device Security Provider settings for TPM Hardware Security Modules.

Applies to

DeviceAuthenticationWithTpm(String, SecurityProviderTpm, Int32, Int32)

Initializes a new instance of the DeviceAuthenticationWithTpm class.

public DeviceAuthenticationWithTpm(string deviceId, Microsoft.Azure.Devices.Shared.SecurityProviderTpm securityProvider, int suggestedTimeToLiveSeconds, int timeBufferPercentage);
new Microsoft.Azure.Devices.Client.DeviceAuthenticationWithTpm : string * Microsoft.Azure.Devices.Shared.SecurityProviderTpm * int * int -> Microsoft.Azure.Devices.Client.DeviceAuthenticationWithTpm
Public Sub New (deviceId As String, securityProvider As SecurityProviderTpm, suggestedTimeToLiveSeconds As Integer, timeBufferPercentage As Integer)

Parameters

deviceId
System.String

Device Identifier.

securityProvider
Microsoft.Azure.Devices.Shared.SecurityProviderTpm

Device Security Provider settings for TPM Hardware Security Modules.

suggestedTimeToLiveSeconds
System.Int32

Token time to live suggested value.

timeBufferPercentage
System.Int32

Time buffer before expiry when the token should be renewed expressed as percentage of the time to live. EX: If you want a SAS token to live for 85% of life before proactive renewal, this value should be 15.

Applies to