Table of Contents

Class NonceTrackerEntry

Namespace
Cuemon.AspNetCore.Authentication
Assembly
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

NonceTrackerEntry(int, DateTime)

Initializes a new instance of the NonceTrackerEntry class.

public NonceTrackerEntry(int count, DateTime created)

Parameters

count int

The number that should be used only once.

created DateTime

The timestamp from when this entry was created.

Properties

Count

Gets the number that should be used only once.

public int Count { get; }

Property Value

int

The number that should be used only once.

Created

Gets the timestamp from when this entry was created.

public DateTime Created { get; }

Property Value

DateTime

The timestamp from when this entry was created.