AuthenticationMethodFactory.CreateAuthenticationWithToken Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.