IotHubConnectionStringBuilder Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.service.auth.IotHubConnectionStringBuilder

public class IotHubConnectionStringBuilder

Provide static constructors to create IotHubConnectionString object

Method Summary

Modifier and Type Method and Description
IotHubConnectionString createIotHubConnectionString(String connectionString)

Static constructor to create IotHubConnectionString from the given string

IotHubConnectionString createIotHubConnectionString(String hostName, AuthenticationMethod authenticationMethod)

Static constructor to create IotHubConnectionString from host name and authentication method

Method Details

createIotHubConnectionString

public static IotHubConnectionString createIotHubConnectionString(String connectionString)

Static constructor to create IotHubConnectionString from the given string

Parameters:

connectionString - The connection string

Returns:

The IotHubConnectionString object

createIotHubConnectionString

public static IotHubConnectionString createIotHubConnectionString(String hostName, AuthenticationMethod authenticationMethod)

Static constructor to create IotHubConnectionString from host name and authentication method

Parameters:

hostName - The hostName string
authenticationMethod - The AuthenticationMethod object

Returns:

The IotHubConnectionString object

Applies to