AuthenticationWithTokenRefresh Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Authentication method that uses a shared access signature token and allows for token refresh.
public abstract class AuthenticationWithTokenRefresh : IDisposable, Microsoft.Azure.Devices.Client.IAuthenticationMethod
type AuthenticationWithTokenRefresh = class
interface IAuthenticationMethod
interface IDisposable
Public MustInherit Class AuthenticationWithTokenRefresh
Implements IAuthenticationMethod, IDisposable
- Inheritance
-
AuthenticationWithTokenRefresh
- Derived
- Implements
Constructors
AuthenticationWithTokenRefresh(Int32, Int32) |
Initializes a new instance of the AuthenticationWithTokenRefresh class. |
AuthenticationWithTokenRefresh(Int32, Int32, Boolean) |
Initializes a new instance of the AuthenticationWithTokenRefresh class. |
Properties
ExpiresOn |
Gets a snapshot of the UTC token expiry time. |
IsExpiring |
Gets a snapshot expiry state. |
RefreshesOn |
Gets a snapshot of the UTC token refresh time. |
Methods
Dispose() |
Dispose resources |
Dispose(Boolean) |
Releases the unmanaged resources used by the Component and optionally releases the managed resources. |
GetTokenAsync(String) |
Gets a snapshot of the security token associated with the device. This call is thread-safe. |
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. |
Applies to
Azure SDK for .NET