Share via


AuthenticationWithTokenRefresh Classe

Définition

Méthode d’authentification qui utilise un jeton de signature d’accès partagé et autorise l’actualisation du jeton.

public abstract class AuthenticationWithTokenRefresh : IDisposable, Microsoft.Azure.Devices.Client.IAuthenticationMethod
type AuthenticationWithTokenRefresh = class
    interface IAuthenticationMethod
    interface IDisposable
Public MustInherit Class AuthenticationWithTokenRefresh
Implements IAuthenticationMethod, IDisposable
Héritage
AuthenticationWithTokenRefresh
Dérivé
Implémente

Constructeurs

AuthenticationWithTokenRefresh(Int32, Int32)

Initialise une nouvelle instance de la classe AuthenticationWithTokenRefresh.

AuthenticationWithTokenRefresh(Int32, Int32, Boolean)

Initialise une nouvelle instance de la classe AuthenticationWithTokenRefresh.

Propriétés

ExpiresOn

Obtient une instantané de l’heure d’expiration du jeton UTC.

IsExpiring

Obtient un état d’expiration instantané.

RefreshesOn

Obtient une instantané de l’heure d’actualisation du jeton UTC.

Méthodes

Dispose()

Libération des ressources

Dispose(Boolean)

Libère les ressources non managées utilisées par le composant et libère éventuellement les ressources managées.

GetTokenAsync(String)

Obtient une instantané du jeton de sécurité associé à l’appareil. Cet appel est thread-safe.

Populate(IotHubConnectionStringBuilder)

Remplit un IotHubConnectionStringBuilder instance en fonction d’une instantané des propriétés du instance actuel.

SafeCreateNewToken(String, Int32)

Crée un jeton avec une durée de vie suggérée. Cette méthode est thread-safe.

S’applique à