IotHubConnectionStringBuilder Class    
	- java.lang. Object 
- com.microsoft. azure. sdk. iot. service. IotHubConnectionStringBuilder 
 
- com.
public class IotHubConnectionStringBuilder
Provide static constructors to create IotHubConnectionString object
Constructor Summary
| Constructor | Description | |
|---|---|---|
| IotHubConnectionStringBuilder() | ||
Method Summary
| Modifier and Type | Method and Description | 
|---|---|
| static
									Iot | createConnectionString(String connectionString) Deprecated 
										Use createIotHubConnectionString(String connectionString) since it does not declare any thrown exceptions
									 Static constructor to create Iot | 
| static
									Iot | createConnectionString(String hostName, AuthenticationMethod authenticationMethod) Deprecated 
										Use createIotHubConnectionString(String hostName, AuthenticationMethod authenticationMethod) since it does not declare any thrown exceptions
									 Static constructor to create Iot | 
| static
									Iot | createIotHubConnectionString(String connectionString) Static constructor to create Iot | 
| static
									Iot | createIotHubConnectionString(String hostName, AuthenticationMethod authenticationMethod) Static constructor to create Iot | 
| protected static void | parse(String connectionString, IotHubConnectionString iotHubConnectionString) Deserialize connection string | 
| protected static java.lang.String | parseIotHubName(IotHubConnectionString iotHubConnectionString) Parse the iot hub name part from the host name | 
| protected static void | setAuthenticationMethod(AuthenticationMethod authenticationMethod, IotHubConnectionString iotHubConnectionString) Set authentication method to target Iot | 
| protected static void | setHostName(String hostName, IotHubConnectionString iotHubConnectionString) Set host name value to target Iot | 
| protected static void | validate(IotHubConnectionString iotHubConnectionString) Validate Iot | 
| protected static void | validateFormat(String value, String regex) Validate string property using given regex | 
| protected static void | validateFormatIfSpecified(String value, String regex) Validate string property using given regex if value is not null or empty | 
Methods inherited from java.lang.Object
Constructor Details
IotHubConnectionStringBuilder
public IotHubConnectionStringBuilder()
Method Details
createConnectionString
public static IotHubConnectionString createConnectionString(String connectionString)
Deprecated
Static constructor to create IotHubConnectionString from the given string
Parameters:
Returns:
Throws:
createConnectionString
public static IotHubConnectionString createConnectionString(String hostName, AuthenticationMethod authenticationMethod)
Deprecated
Static constructor to create IotHubConnectionString from host name and authentication method
Parameters:
Returns:
Throws:
createIotHubConnectionString
public static IotHubConnectionString createIotHubConnectionString(String connectionString)
Static constructor to create IotHubConnectionString from the given string
Parameters:
Returns:
createIotHubConnectionString
public static IotHubConnectionString createIotHubConnectionString(String hostName, AuthenticationMethod authenticationMethod)
Static constructor to create IotHubConnectionString from host name and authentication method
Parameters:
Returns:
parse
protected static void parse(String connectionString, IotHubConnectionString iotHubConnectionString)
Deserialize connection string
Parameters:
parseIotHubName
protected static String parseIotHubName(IotHubConnectionString iotHubConnectionString)
Parse the iot hub name part from the host name
Parameters:
Returns:
setAuthenticationMethod
protected static void setAuthenticationMethod(AuthenticationMethod authenticationMethod, IotHubConnectionString iotHubConnectionString)
Set authentication method to target IotHubConnectionString object
Parameters:
setHostName
protected static void setHostName(String hostName, IotHubConnectionString iotHubConnectionString)
Set host name value to target IotHubConnectionString object
Parameters:
validate
protected static void validate(IotHubConnectionString iotHubConnectionString)
Validate IotHubConnectionString format
Parameters:
Throws:
validateFormat
protected static void validateFormat(String value, String regex)
Validate string property using given regex
Parameters:
validateFormatIfSpecified
protected static void validateFormatIfSpecified(String value, String regex)
Validate string property using given regex if value is not null or empty
Parameters: