Delen via


AuthenticationMethodFactory.CreateAuthenticationWithToken Method

Definition

Overloads

CreateAuthenticationWithToken(String, String)

Creates a DeviceAuthenticationWithToken instance based on the parameters.

CreateAuthenticationWithToken(String, String, String)

Creates a ModuleAuthenticationWithToken instance based on the parameters.

CreateAuthenticationWithToken(String, String)

Creates a DeviceAuthenticationWithToken instance based on the parameters.

public static Microsoft.Azure.Devices.Client.IAuthenticationMethod CreateAuthenticationWithToken (string deviceId, string token);
static member CreateAuthenticationWithToken : string * string -> Microsoft.Azure.Devices.Client.IAuthenticationMethod
Public Shared Function CreateAuthenticationWithToken (deviceId As String, token As String) As IAuthenticationMethod

Parameters

deviceId
String

Device Identifier.

token
String

Security token associated with the device.

Returns

A new instance of the DeviceAuthenticationWithToken class.

Applies to

CreateAuthenticationWithToken(String, String, String)

Creates a ModuleAuthenticationWithToken instance based on the parameters.

public static Microsoft.Azure.Devices.Client.IAuthenticationMethod CreateAuthenticationWithToken (string deviceId, string moduleId, string token);
static member CreateAuthenticationWithToken : string * string * string -> Microsoft.Azure.Devices.Client.IAuthenticationMethod
Public Shared Function CreateAuthenticationWithToken (deviceId As String, moduleId As String, token As String) As IAuthenticationMethod

Parameters

deviceId
String

Device Identifier.

moduleId
String

Module Identifier.

token
String

Security token associated with the device.

Returns

A new instance of the ModuleAuthenticationWithToken class.

Applies to