IotHubSSLContext Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. deps. auth. IotHubSSLContext
- com.
public class IotHubSSLContext
Constructor Summary
Constructor | Description |
---|---|
IotHubSSLContext() |
Creates a SSLContext for the Iot |
IotHubSSLContext(String trustedCert, boolean isPath) |
Creates a default SSLContext for the Iot |
IotHubSSLContext(String publicKeyCertificateString, String privateKeyString) |
Constructor that takes a public key certificate and private key pair. |
IotHubSSLContext(String publicKeyCertificateString, String privateKeyString, String cert, boolean isPath) |
Creates a default SSLContext for the Iot |
IotHubSSLContext(SSLContext sslContext) |
Constructor that takes and saves an SSLContext object |
Method Summary
Modifier and Type | Method and Description |
---|---|
javax.net.ssl.SSLContext |
getSSLContext()
Getter for the Iot |
Methods inherited from java.lang.Object
Constructor Details
IotHubSSLContext
public IotHubSSLContext()
Creates a SSLContext for the IotHub.
Throws:
IotHubSSLContext
public IotHubSSLContext(String trustedCert, boolean isPath)
Creates a default SSLContext for the IotHub with the specified certificate.
Parameters:
Throws:
IotHubSSLContext
public IotHubSSLContext(String publicKeyCertificateString, String privateKeyString)
Constructor that takes a public key certificate and private key pair.
Parameters:
Throws:
IotHubSSLContext
public IotHubSSLContext(String publicKeyCertificateString, String privateKeyString, String cert, boolean isPath)
Creates a default SSLContext for the IotHub with the specified certificate.
Parameters:
Throws:
IotHubSSLContext
public IotHubSSLContext(SSLContext sslContext)
Constructor that takes and saves an SSLContext object
Parameters:
Method Details
getSSLContext
public SSLContext getSSLContext()
Getter for the IotHubSSLContext
Returns:
Applies to
Azure SDK for Java