IotHubSasTokenHardwareAuthenticationProvider Class
- java.
lang. Object - IotHubAuthenticationProvider
- IotHubSasTokenAuthenticationProvider
- com.
microsoft. azure. sdk. iot. device. auth. IotHubSasTokenHardwareAuthenticationProvider
- com.
public class IotHubSasTokenHardwareAuthenticationProvider extends IotHubSasTokenAuthenticationProvider
Constructor Summary
Constructor | Description |
---|---|
IotHubSasTokenHardwareAuthenticationProvider(String hostname, String gatewayHostname, String deviceId, String moduleId, SecurityProvider securityProvider) |
Creates a Sas Token based authentication object that uses the provided security provider to produce sas tokens. |
Method Summary
Modifier and Type | Method and Description |
---|---|
boolean | canRefreshToken() |
char [] |
getSasToken()
Getter for SasToken. If the saved token has expired, this method shall renew it if possible |
boolean | isAuthenticationProviderRenewalNecessary() |
Inherited Members
Constructor Details
IotHubSasTokenHardwareAuthenticationProvider
public IotHubSasTokenHardwareAuthenticationProvider(String hostname, String gatewayHostname, String deviceId, String moduleId, SecurityProvider securityProvider)
Creates a Sas Token based authentication object that uses the provided security provider to produce sas tokens.
Parameters:
Throws:
Method Details
canRefreshToken
public boolean canRefreshToken()
getSasToken
public char [] getSasToken()
Getter for SasToken. If the saved token has expired, this method shall renew it if possible
Returns:
Throws:
isAuthenticationProviderRenewalNecessary
public boolean isAuthenticationProviderRenewalNecessary()
Returns:
Applies to
Azure SDK for Java