Table of Contents

Interface INonceTracker

Namespace
Cuemon.AspNetCore.Authentication
Assembly
Cuemon.AspNetCore.Authentication.dll

Represents tracking of server-generated nonce values.

public interface INonceTracker

Methods

TryAddEntry(String, Int32)

Attempts to insert a NonceTrackerEntry into the tracker.

bool TryAddEntry(string nonce, int count)

Parameters

nonce String

The unique identifier of the tracker.

count Int32

The number or bit string that should be used only once.

Returns

Boolean

true if insertion succeeded; otherwise, false when there is already an entry in the tracker with the same key.

TryGetEntry(String, out NonceTrackerEntry)

Attempts to get the NonceTrackerEntry associated with the specified nonce from the tracker.

bool TryGetEntry(string nonce, out NonceTrackerEntry entry)

Parameters

nonce String

The unique identifier of the tracker.

entry NonceTrackerEntry

When this method returns, contains the entry associated with the specified nonce, or null if the operation failed.

Returns

Boolean

true if the entry was found in the tracker; otherwise, false.

TryRemoveEntry(String)

Attempts to remove an entry from the tracker.

bool TryRemoveEntry(string nonce)

Parameters

nonce String

The unique identifier of the tracker.

Returns

Boolean

true if the entry is removed from the tracker; otherwise, false.

See Also