Table of Contents

Class SingleUseToken

Namespace
Dynamicweb.Security.Tokens
Assembly
Dynamicweb.Core.dll

Used to create a consume single-use tokens for ensuring that a given resource is only being used exactly once.

public sealed class SingleUseToken
Inheritance
SingleUseToken
Inherited Members

Methods

Consume(string)

Tries to consume a single-use token and tells if it succeded.

public static bool Consume(string token)

Parameters

token string

Unique token

Returns

bool

token was valid and has been consumed

Create()

Creates a new single-use token

public static string Create()

Returns

string

Unique token

To top