InternalClient(IotHubAuthenticationProvider iotHubAuthenticationProvider, IotHubClientProtocol protocol, long sendPeriodMillis, long receivePeriodMillis) throws IOException, TransportException { this.config = new DeviceClientConfig(iotHubAuthenticationProvider); this.config.setProtocol(protocol); this.deviceIO = new DeviceIO(this.config, sendPeriodMillis, receivePeriodMillis); this.logger = new CustomLogger(this.getClass()); }
InternalClient(IotHubConnectionString iotHubConnectionString, IotHubClientProtocol protocol, long sendPeriodMillis, long receivePeriodMillis) { /* Codes_SRS_INTERNALCLIENT_21_004: [If the connection string is null or empty, the function shall throw an IllegalArgumentException.] */ commonConstructorVerification(iotHubConnectionString, protocol); this.config = new DeviceClientConfig(iotHubConnectionString); this.config.setProtocol(protocol); this.deviceIO = new DeviceIO(this.config, sendPeriodMillis, receivePeriodMillis); this.logger = new CustomLogger(this.getClass()); }
this.config = new DeviceClientConfig(connectionString, securityProvider); this.config.setProtocol(protocol);
InternalClient(IotHubConnectionString iotHubConnectionString, IotHubClientProtocol protocol, String publicKeyCertificate, boolean isCertificatePath, String privateKey, boolean isPrivateKeyPath, long sendPeriodMillis, long receivePeriodMillis) throws URISyntaxException { // Codes_SRS_INTERNALCLIENT_34_078: [If the connection string or protocol is null, this function shall throw an IllegalArgumentException.] commonConstructorVerification(iotHubConnectionString, protocol); // Codes_SRS_INTERNALCLIENT_34_079: [This function shall save a new config using the provided connection string, and x509 certificate information.] this.config = new DeviceClientConfig(iotHubConnectionString, publicKeyCertificate, isCertificatePath, privateKey, isPrivateKeyPath); this.config.setProtocol(protocol); // Codes_SRS_INTERNALCLIENT_34_080: [This function shall save a new DeviceIO instance using the created config and the provided send/receive periods.] this.deviceIO = new DeviceIO(this.config, sendPeriodMillis, receivePeriodMillis); this.logger = new CustomLogger(this.getClass()); }
this.config = new DeviceClientConfig(new IotHubConnectionString(connString)); this.deviceIO = null;