Share via


ModuleAuthenticationWithTokenRefresh Class

Definition

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

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

Constructors

Microsoft.Azure.Devices.Client.ModuleAuthenticationWithTokenRefresh.#ctor(System.String,System.String,System.Int32,System.Int32,System.Boolean)
ModuleAuthenticationWithTokenRefresh(String, String, Int32, Int32)

Initializes a new instance of the ModuleAuthenticationWithTokenRefresh class.

ModuleAuthenticationWithTokenRefresh(String, String)

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

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)
ModuleId

Gets the ModuleId.

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 an IotHubConnectionStringBuilder instance based on a snapshot of 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