IotHubSasTokenHsmAuthenticationProvider Class
- java.
lang. Object - IotHubAuthenticationProvider
- IotHubSasTokenAuthenticationProvider
- IotHubSasTokenWithRefreshAuthenticationProvider
- com.
microsoft. azure. sdk. iot. device. hsm. IotHubSasTokenHsmAuthenticationProvider
- com.
public class IotHubSasTokenHsmAuthenticationProvider extends IotHubSasTokenWithRefreshAuthenticationProvider
Authentication method that uses HSM to get a SAS token.
Method Summary
Modifier and Type | Method and Description |
---|---|
boolean |
canRefreshToken()
Returns true as the Hsm can always refresh the token |
Iot |
create(SignatureProvider signatureProvider, String deviceId, String moduleId, String hostname, String gatewayHostname, String generationId, int suggestedTimeToLiveSeconds, int timeBufferPercentage)
Constructor for a IotHubSasTokenHsmAuthenticationProvider instance |
Iot |
create(SignatureProvider signatureProvider, String deviceId, String moduleId, String hostname, String gatewayHostname, String generationId, int suggestedTimeToLiveSeconds, int timeBufferPercentage, SSLContext sslContext)
Constructor for a IotHubSasTokenHsmAuthenticationProvider instance |
void |
refreshSasToken()
Renew the saved sas token using the HSM unit |
Inherited Members
Method Details
canRefreshToken
public boolean canRefreshToken()
Returns true as the Hsm can always refresh the token
Returns:
create
public static IotHubSasTokenHsmAuthenticationProvider create(SignatureProvider signatureProvider, String deviceId, String moduleId, String hostname, String gatewayHostname, String generationId, int suggestedTimeToLiveSeconds, int timeBufferPercentage)
Constructor for a IotHubSasTokenHsmAuthenticationProvider instance
Parameters:
Returns:
Throws:
create
public static IotHubSasTokenHsmAuthenticationProvider create(SignatureProvider signatureProvider, String deviceId, String moduleId, String hostname, String gatewayHostname, String generationId, int suggestedTimeToLiveSeconds, int timeBufferPercentage, SSLContext sslContext)
Constructor for a IotHubSasTokenHsmAuthenticationProvider instance
Parameters:
Returns:
Throws:
refreshSasToken
public void refreshSasToken()
Renew the saved sas token using the HSM unit
Throws:
Applies to
Azure SDK for Java