IotHubSasTokenSoftwareAuthenticationProvider 类
定义
public class IotHubSasTokenSoftwareAuthenticationProvider extends IotHubSasTokenAuthenticationProvider
- 继承
-
java.lang.ObjectIotHubSasTokenSoftwareAuthenticationProvider
继承成员
IotHubAuthenticationProvider.deviceId
IotHubSasTokenAuthenticationProvider.ENCODING_FORMAT_NAME
IotHubAuthenticationProvider.gatewayHostname
IotHubAuthenticationProvider.getDeviceId()
IotHubAuthenticationProvider.getGatewayHostname()
IotHubAuthenticationProvider.getHostname()
IotHubAuthenticationProvider.getIotHubTrustedCert()
IotHubSasTokenAuthenticationProvider.getMillisecondsBeforeProactiveRenewal()
IotHubAuthenticationProvider.getModuleId()
IotHubAuthenticationProvider.getPathToIotHubTrustedCert()
IotHubAuthenticationProvider.getSSLContext()
IotHubSasTokenAuthenticationProvider.getTokenValidSecs()
IotHubAuthenticationProvider.hostname
IotHubAuthenticationProvider.IotHubAuthenticationProvider(String hostname, String gatewayHostname, String deviceId, String moduleId)
IotHubAuthenticationProvider.IotHubAuthenticationProvider(String hostname, String gatewayHostname, String deviceId, String moduleId, SSLContext sslContext)
IotHubSasTokenAuthenticationProvider.IotHubSasTokenAuthenticationProvider(String hostname, String gatewayHostname, String deviceId, String moduleId)
IotHubSasTokenAuthenticationProvider.IotHubSasTokenAuthenticationProvider(String hostname, String gatewayHostname, String deviceId, String moduleId, SSLContext sslContext)
IotHubSasTokenAuthenticationProvider.IotHubSasTokenAuthenticationProvider(String hostname, String gatewayHostname, String deviceId, String moduleId, long tokenValidSecs, int timeBufferPercentage)
IotHubAuthenticationProvider.iotHubSSLContext
IotHubAuthenticationProvider.iotHubTrustedCert
IotHubSasTokenAuthenticationProvider.MILLISECONDS_PER_SECOND
IotHubSasTokenAuthenticationProvider.MINIMUM_EXPIRATION_TIME_OFFSET
IotHubAuthenticationProvider.moduleId
IotHubAuthenticationProvider.pathToIotHubTrustedCert
IotHubSasTokenAuthenticationProvider.sasToken
IotHubAuthenticationProvider.setIotHubTrustedCert(String certificate)
IotHubAuthenticationProvider.setPathToIotHubTrustedCert(String pathToCertificate)
IotHubAuthenticationProvider.setSSLContext(SSLContext sslContext)
IotHubSasTokenAuthenticationProvider.shouldRefreshToken(boolean proactivelyRenew)
IotHubAuthenticationProvider.sslContextNeedsUpdate
IotHubSasTokenAuthenticationProvider.timeBufferPercentage
IotHubSasTokenAuthenticationProvider.tokenValidSecs
构造函数
IotHubSasTokenSoftwareAuthenticationProvider(String hostname, String gatewayHostname, String deviceId, String moduleId, String deviceKey, String sharedAccessToken) |
Constructor that takes a connection string containing a sas token or a device key and uses the default token valid seconds and timeBufferPercentage |
IotHubSasTokenSoftwareAuthenticationProvider(String hostname, String gatewayHostname, String deviceId, String moduleId, String deviceKey, String sharedAccessToken, int tokenValidSecs, int timeBufferPercentage) |
Constructor that takes a connection string containing a sas token or a device key
|
IotHubSasTokenSoftwareAuthenticationProvider(String hostname, String gatewayHostname, String deviceId, String moduleId, String deviceKey, String sharedAccessToken, SSLContext sslContext) |
Constructor that takes a connection string containing a sas token or a device key and uses the default token valid seconds and timeBufferPercentage |
字段
deviceKey |
方法
canRefreshToken() | |
getSasToken() |
Getter for SasToken. If the saved token has expired, this method shall renew it if possible
|
isAuthenticationProviderRenewalNecessary() |
Returns true if the saved sas token has expired and cannot be auto-renewed through the device key |
setTokenValidSecs(long tokenValidSecs) |