Compartilhar via


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