NonceTrackerEntry Class
Definition
- Namespace
- Cuemon.AspNetCore.Authentication
- Assemblies
- Cuemon.AspNetCore.Authentication.dll
Represents an individual nonce entry in the INonceTracker.
public class NonceTrackerEntry
- Inheritance
-
NonceTrackerEntry
Examples
The following example demonstrates a nonce tracker entry that holds nonce data for authentication.
using System;
using Cuemon.AspNetCore.Authentication;
namespace MyApp.Examples;
public class NonceTrackerEntryExample
{
public void Demonstrate()
{
var entry = new NonceTrackerEntry(1, DateTime.UtcNow);
Console.WriteLine($"Count: {entry.Count}, Created: {entry.Created}");
}
}
Constructors
| Name | Description |
|---|---|
| NonceTrackerEntry(int, DateTime) | Initializes a new instance of the NonceTrackerEntry class. |
Properties
| Name | Description |
|---|---|
| Count | Gets the number that should be used only once. |
| Created | Gets the timestamp from when this entry was created. |