IotHubX509SoftwareAuthenticationProvider 构造函数

定义

重载

IotHubX509SoftwareAuthenticationProvider(String hostname, String gatewayHostname, String deviceId, String moduleId, SSLContext sslContext)
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)

public IotHubX509SoftwareAuthenticationProvider(String hostname, String gatewayHostname, String deviceId, String moduleId, SSLContext sslContext)

参数

hostname
String
gatewayHostname
String
deviceId
String
moduleId
String
sslContext
SSLContext

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

public IotHubX509SoftwareAuthenticationProvider(String hostname, String gatewayHostname, String deviceId, String moduleId, String publicKeyCertificate, boolean isCertificatePath, String privateKey, boolean isPrivateKeyPath)

参数

hostname
String

the IotHub host name

gatewayHostname
String

The gateway hostname to use, or null if connecting to an IotHub

deviceId
String

The device to be authenticated.

moduleId
String

The module to be authenticated. May be null if this authentication is not for a module

publicKeyCertificate
String

The PEM encoded string for the public key certificate or the path to a file containing it

isCertificatePath
boolean

If the provided publicKeyCertificate is a path to the PEM encoded public key certificate file

privateKey
String

The PEM encoded string for the private key or the path to a file containing it.

isPrivateKeyPath
boolean

If the provided privateKey is a path to the PEM encoded private key file

例外

IllegalArgumentException

if the public key certificate or private key is null or empty

适用于