语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

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

Name Description
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

Name Description
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

Name Description
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