你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ClientOptions Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.device.ClientOptions

public final class ClientOptions

Options that allow configuration of the device client instance during initialization.

Field Summary

Modifier and Type Field and Description
java.lang.String ModelId

The Digital Twin Model Id associated with the device and module identity.

javax.net.ssl.SSLContext sslContext

The ssl context that will be used during authentication.

Constructor Summary

Constructor Description
ClientOptions()

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Field Details

ModelId

public String ModelId

The Digital Twin Model Id associated with the device and module identity. Non plug and play users should not set this value This feature is currently supported only over MQTT

sslContext

public SSLContext sslContext

The ssl context that will be used during authentication. If the provided connection string does not contain SAS based credentials, then the sslContext will be used for x509 authentication. If the provided connection string does contain SAS based credentials, the sslContext will still be used during SSL negotiation. By default, this SDK will create an SSLContext instance for you that trusts the IoT Hub public certificates.

Constructor Details

ClientOptions

public ClientOptions()

Applies to