IotHubX509SoftwareAuthenticationProvider Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. device. auth. IotHubAuthenticationProvider - com.
microsoft. azure. sdk. iot. device. auth. IotHubX509SoftwareAuthenticationProvider
- com.
- com.
public class IotHubX509SoftwareAuthenticationProvider
extends IotHubAuthenticationProvider
Field Summary
Modifier and Type | Field and Description |
---|---|
protected
Iot |
iotHubX509 |
Constructor Summary
Constructor | Description | |
---|---|---|
IotHubX509SoftwareAuthenticationProvider(String hostname, String gatewayHostname, String deviceId, String moduleId, String publicKeyCertificate, boolean isCertificatePath, String privateKey, boolean isPrivateKeyPath) |
Constructor that takes in a connection string and certificate/private key pair needed to use x509 authentication |
|
IotHubX509SoftwareAuthenticationProvider(String hostname, String gatewayHostname, String deviceId, String moduleId, SSLContext sslContext) |
Method Summary
Modifier and Type | Method and Description |
---|---|
javax.net.ssl.SSLContext |
getSSLContext()
Getter for Iot |
Methods inherited from IotHubAuthenticationProvider
Methods inherited from java.lang.Object
Field Details
iotHubX509
protected IotHubX509 iotHubX509
Constructor Details
IotHubX509SoftwareAuthenticationProvider
public IotHubX509SoftwareAuthenticationProvider(String hostname, String gatewayHostname, String deviceId, String moduleId, String publicKeyCertificate, boolean isCertificatePath, String privateKey, boolean isPrivateKeyPath)
Constructor that takes in a connection string and certificate/private key pair needed to use x509 authentication
Parameters:
Throws:
IotHubX509SoftwareAuthenticationProvider
public IotHubX509SoftwareAuthenticationProvider(String hostname, String gatewayHostname, String deviceId, String moduleId, SSLContext sslContext)
Parameters:
Throws:
Method Details
getSSLContext
public SSLContext getSSLContext()
Getter for IotHubSSLContext
Overrides:
IotHubX509SoftwareAuthenticationProvider.getSSLContext()Returns:
Throws:
Applies to
Azure SDK for Java