Condividi tramite


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

ModuleAuthenticationWithTokenRefresh(String, String, Int32, Int32, Boolean)

Initializes a new instance of this class.

ModuleAuthenticationWithTokenRefresh(String, String, Int32, Int32)

Initializes a new instance of this class.

ModuleAuthenticationWithTokenRefresh(String, String)

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

Properties

DeviceId

Gets the device's Id.

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 module's Id.

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