IotHubX509HardwareAuthenticationProvider Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. device. auth. IotHubAuthenticationProvider - com.
microsoft. azure. sdk. iot. device. auth. IotHubX509HardwareAuthenticationProvider
- com.
- com.
public class IotHubX509HardwareAuthenticationProvider
extends IotHubAuthenticationProvider
Field Summary
Modifier and Type | Field and Description |
---|---|
protected
Security |
securityProviderX509 |
Constructor Summary
Constructor | Description | |
---|---|---|
IotHubX509HardwareAuthenticationProvider(String hostname, String gatewayHostname, String deviceId, String moduleId, SecurityProvider securityProvider) |
Method Summary
Modifier and Type | Method and Description |
---|---|
javax.net.ssl.SSLContext |
getSSLContext()
Getter for Iot |
void |
setIotHubTrustedCert(String certificate)
Setter for the user trusted certificate |
void |
setPathToIotHubTrustedCert(String pathToCertificate)
Setter for the providing trusted certificate. |
Methods inherited from IotHubAuthenticationProvider
Methods inherited from java.lang.Object
Field Details
securityProviderX509
protected SecurityProviderX509 securityProviderX509
Constructor Details
IotHubX509HardwareAuthenticationProvider
public IotHubX509HardwareAuthenticationProvider(String hostname, String gatewayHostname, String deviceId, String moduleId, SecurityProvider securityProvider)
Parameters:
Method Details
getSSLContext
public SSLContext getSSLContext()
Getter for IotHubSSLContext
Overrides:
IotHubX509HardwareAuthenticationProvider.getSSLContext()Returns:
Throws:
setIotHubTrustedCert
public void setIotHubTrustedCert(String certificate)
Setter for the user trusted certificate
Overrides:
IotHubX509HardwareAuthenticationProvider.setIotHubTrustedCert(String certificate)Parameters:
setPathToIotHubTrustedCert
public void setPathToIotHubTrustedCert(String pathToCertificate)
Setter for the providing trusted certificate.
Overrides:
IotHubX509HardwareAuthenticationProvider.setPathToIotHubTrustedCert(String pathToCertificate)Parameters:
Applies to
Azure SDK for Java