Package com.example.blogs.app.security
Interface JtiGenerator
- All Known Implementing Classes:
JtiGeneratorImpl
public interface JtiGenerator
Generates unique JWT Token Identifiers (JTI) for use as the subject claim in JWTs.
The JTI serves as a UUID-based unique identifier for each token, separate from the user ID.
-
Method Summary
-
Method Details
-
generateJti
String generateJti()Generates a unique JWT Token Identifier.- Returns:
- a UUID string to be used as the JWT subject (sub) claim
-