com.microsoft.azure.sdk.iot.device.auth

Authenticates a device to an IoT Hub via SAS tokens.

Classes

IotHubAuthenticationProvider

Base class for providing authentication for a Device Client or Module Client, including x509 and SAS based authentication.

IotHubSasToken

Grants device access to an IoT Hub for the specified amount of time.

IotHubSasTokenAuthenticationProvider
IotHubSasTokenHardwareAuthenticationProvider
IotHubSasTokenProvidedAuthenticationProvider

IotHubSasTokenAuthenticationProvider implementation where the tokens are provided by an instance of SasTokenProvider. This is used in cases like when the user creates a device client with DeviceClient(String hostName, String deviceId, SasTokenProvider sasTokenProvider, IotHubClientProtocol protocol, ClientOptions clientOptions)

IotHubSasTokenSoftwareAuthenticationProvider
IotHubSasTokenWithRefreshAuthenticationProvider

Authentication method that uses a shared access signature token and allows for token refresh.

IotHubSSLContext

A simple wrapper for holding the SSLContext used by all connections from clients in this library to the service.

IotHubX509HardwareAuthenticationProvider
IotHubX509SoftwareAuthenticationProvider

Interfaces

SignatureProvider

Interface for a valid signature provider