Udostępnij za pośrednictwem


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, Int32, Int32, Boolean)

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
String

Device Identifier.

securityProvider
SecurityProviderTpm

Device Security Provider settings for TPM Hardware Security Modules.

Remarks

This constructor will create an authentication method instance that will be disposed when its associated device client instance is disposed. To reuse the authentication method instance across multiple client instance lifetimes, use DeviceAuthenticationWithTpm(String, SecurityProviderTpm, Int32, Int32, Boolean) constructor and set disposeWithClient to false.

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
String

Device Identifier.

securityProvider
SecurityProviderTpm

Device Security Provider settings for TPM Hardware Security Modules.

suggestedTimeToLiveSeconds
Int32

Token time to live suggested value.

timeBufferPercentage
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

DeviceAuthenticationWithTpm(String, SecurityProviderTpm, Int32, Int32, Boolean)

Initializes a new instance of the DeviceAuthenticationWithTpm class.

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

Parameters

deviceId
String

Device Identifier.

securityProvider
SecurityProviderTpm

Device Security Provider settings for TPM Hardware Security Modules.

suggestedTimeToLiveSeconds
Int32

Token time to live suggested value.

timeBufferPercentage
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.

disposeWithClient
Boolean

Applies to