سؤال

I have to create web services requires creating a token, That Which expires in a few minutes, but I have no idea how to create a session or some kind of persistence RestEasy

هل كانت مفيدة؟

المحلول

try using a preProcesorInterceptor , you will generate the token and will maintain it in memory (maybe using a Map) or database storing also the expiration time, so in the preprocesor you will check if the token is still valid.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top