Package com.example.blogs.app.security
Class JtiGeneratorImpl
java.lang.Object
com.example.blogs.app.security.JtiGeneratorImpl
- All Implemented Interfaces:
JtiGenerator
Default implementation of JtiGenerator that produces UUID-based token identifiers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGenerates a unique JWT Token Identifier using UUID.randomUUID().
-
Constructor Details
-
JtiGeneratorImpl
public JtiGeneratorImpl()
-
-
Method Details
-
generateJti
Generates a unique JWT Token Identifier using UUID.randomUUID().- Specified by:
generateJtiin interfaceJtiGenerator- Returns:
- a randomly generated UUID string
-