IotHubConnectionString Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. device. IotHubConnectionString
- com.
public class IotHubConnectionString
Parser for the Iothub connection string.
Constructor Summary
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDeviceId()
Getter for the device |
java.lang.String | getGatewayHostName() |
java.lang.String |
getHostName()
Getter for the host |
java.lang.String |
getHubName()
Getter for the hub |
java.lang.String | getModuleId() |
java.lang.String |
getSharedAccessKey()
Getter for the shared |
java.lang.String |
getSharedAccessToken()
Getter for the shared |
boolean |
isUsingX509()
Getter for UsingX509 |
void |
setSharedAccessToken(String sharedAccessToken)
Setter for the shared access token |
Methods inherited from java.lang.Object
Constructor Details
IotHubConnectionString
public IotHubConnectionString(String connectionString)
CONSTRUCTOR.
Parameters:
Throws:
null
, empty, or not valid or if the hostName in the connection string is not a valid URI.
null
, empty, or not valid or if the hostName in the connection string is not a valid URI.
null
, empty, or not valid or if the hostName in the connection string is not a valid URI.
IotHubConnectionString
public IotHubConnectionString(String hostName, String deviceId, String sharedAccessKey, String sharedAccessToken)
Constructor.
Parameters:
Throws:
IotHubConnectionString
public IotHubConnectionString(String hostName, String deviceId, String sharedAccessKey, String sharedAccessToken, String gatewayHostName)
Parameters:
Throws:
Method Details
getDeviceId
public String getDeviceId()
Getter for the deviceId.
Returns:
getGatewayHostName
public String getGatewayHostName()
getHostName
public String getHostName()
Getter for the hostName.
Returns:
getHubName
public String getHubName()
Getter for the hubName.
Returns:
getModuleId
public String getModuleId()
getSharedAccessKey
public String getSharedAccessKey()
Getter for the sharedAccessKey.
Returns:
null
.getSharedAccessToken
public String getSharedAccessToken()
Getter for the sharedAccessToken.
Returns:
null
.isUsingX509
public boolean isUsingX509()
Getter for UsingX509
Returns:
setSharedAccessToken
public void setSharedAccessToken(String sharedAccessToken)
Setter for the shared access token
Parameters:
Throws:
Applies to
Azure SDK for Java