Share via


DeviceAuthenticationWithTokenRefresh Class

Definition

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

public abstract class DeviceAuthenticationWithTokenRefresh : Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh
type DeviceAuthenticationWithTokenRefresh = class
    inherit AuthenticationWithTokenRefresh
Public MustInherit Class DeviceAuthenticationWithTokenRefresh
Inherits AuthenticationWithTokenRefresh
Inheritance
DeviceAuthenticationWithTokenRefresh
Derived

Constructors

DeviceAuthenticationWithTokenRefresh(String)

Initializes a new instance of the the class using default TTL and TTL buffer time settings.

DeviceAuthenticationWithTokenRefresh(String, Int32, Int32)

Initializes a new instance of the DeviceAuthenticationWithTokenRefresh class.

DeviceAuthenticationWithTokenRefresh(String, Int32, Int32, Boolean)

Initializes a new instance of the DeviceAuthenticationWithTokenRefresh class.

Properties

DeviceId

Gets the DeviceId.

ExpiresOn

Gets a snapshot of the UTC token expiry time.

(Inherited from AuthenticationWithTokenRefresh)
IsExpiring

Gets a snapshot expiry state.

(Inherited from AuthenticationWithTokenRefresh)
RefreshesOn

Gets a snapshot of the UTC token refresh time.

(Inherited from AuthenticationWithTokenRefresh)

Methods

Dispose()

Dispose resources

(Inherited from AuthenticationWithTokenRefresh)
Dispose(Boolean)

Releases the unmanaged resources used by the Component and optionally releases the managed resources.

(Inherited from AuthenticationWithTokenRefresh)
GetTokenAsync(String)

Gets a snapshot of the security token associated with the device. This call is thread-safe.

(Inherited from AuthenticationWithTokenRefresh)
Populate(IotHubConnectionStringBuilder)

Populates a supplied instance based on the properties of the current instance.

SafeCreateNewToken(String, Int32)

Creates a new token with a suggested TTL. This method is thread-safe.

(Inherited from AuthenticationWithTokenRefresh)

Applies to