Saltar al contenido
Abblix
Esta página aún no está traducida.

ITokenIdGenerator Interface

Produces unique identifiers for JSON Web Tokens, used as the jti claim defined in RFC 7519 §4.1.7. A unique jti per token is required to support replay detection and one-time token semantics, so implementations must generate values with sufficient entropy to make collisions and guessing impractical.

C#
public interface ITokenIdGenerator

Derived
TokenIdGenerator

Methods

ITokenIdGenerator.GenerateTokenId() Method

Generates a new unique identifier suitable for the jti claim of a JWT.

C#
string GenerateTokenId();

Returns

System.String
A unique identifier suitable for use as a JWT ID.