Interface INonceTracker
- Namespace
- Cuemon.AspNetCore.Authentication
- Assembly
- Cuemon.AspNetCore.Authentication.dll
Represents tracking of server-generated nonce values.
public interface INonceTracker
Methods
TryAddEntry(string, int)
Attempts to insert a NonceTrackerEntry into the tracker.
bool TryAddEntry(string nonce, int count)
Parameters
nonce
stringThe unique identifier of the tracker.
count
intThe number or bit string that should be used only once.
Returns
- bool
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
stringThe unique identifier of the tracker.
entry
NonceTrackerEntryWhen this method returns, contains the entry associated with the specified
nonce
, ornull
if the operation failed.
Returns
- bool
true
if theentry
was found in the tracker; otherwise,false
.
TryRemoveEntry(string)
Attempts to remove an entry from the tracker.
bool TryRemoveEntry(string nonce)
Parameters
nonce
stringThe unique identifier of the tracker.
Returns
- bool
true
if the entry is removed from the tracker; otherwise,false
.