ProvisioningConnectionString Class
- java.
lang. Object - ProvisioningConnectionStringBuilder
- com.
microsoft. azure. sdk. iot. provisioning. service. auth. ProvisioningConnectionString
- com.
public class ProvisioningConnectionString extends ProvisioningConnectionStringBuilder
Expose all connections string properties and methods for user, device and connection string serialization.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getUserString()
Serialize user string |
String |
toString()
Serialize connection string |
Inherited Members
ProvisioningConnectionStringBuilder.createConnectionString(String connectionString)
ProvisioningConnectionStringBuilder.createConnectionString(String hostName, AuthenticationMethod authenticationMethod)
Method Details
getUserString
public String getUserString()
Serialize user string
Returns:
The user string in the following format: "SharedAccessKeyName@SAS.root.deviceProvisioningServiceName"
toString
public String toString()
Serialize connection string
Returns:
Provisioning connection string
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java