ProvisioningConnectionStringBuilder Class

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

public class ProvisioningConnectionStringBuilder

Provide static constructors to create ProvisioningConnectionString object

Method Summary

Modifier and Type Method and Description
ProvisioningConnectionString createConnectionString(String connectionString)

Static constructor to create ProvisioningConnectionString deserialize the given string

ProvisioningConnectionString createConnectionString(String hostName, AuthenticationMethod authenticationMethod)

Static constructor to create ProvisioningConnectionString from host name and authentication method

Method Details

createConnectionString

public static ProvisioningConnectionString createConnectionString(String connectionString)

Static constructor to create ProvisioningConnectionString deserialize the given string

Parameters:

connectionString - The serialized connection string

Returns:

The ProvisioningConnectionString object

Throws:

IllegalArgumentException - This exception is thrown if the object creation failed

createConnectionString

public static ProvisioningConnectionString createConnectionString(String hostName, AuthenticationMethod authenticationMethod)

Static constructor to create ProvisioningConnectionString from host name and authentication method

Parameters:

hostName - The hostName string
authenticationMethod - The AuthenticationMethod object

Returns:

The ProvisioningConnectionString object

Throws:

IllegalArgumentException - This exception is thrown if the object creation failed

Applies to