[英]Store Oauth token using java without cookies
I am fairly new to REST.I am developing a java library(No frameworks used) to handle all REST API calls.I want this API to handle storing the oauth credentials that I get on first hit, so that I do not need to request it for subsequent calls till the token expires. 我对REST还很陌生,我正在开发一个Java库(不使用任何框架)来处理所有REST API调用。我希望该API可以处理存储我第一次点击时获得的oauth凭据,因此我不需要请求它用于后续调用,直到令牌过期。 I have read a lot about storing in cookies but that approach did not work for me.
我已经阅读了很多有关存储在cookie中的信息,但是这种方法对我不起作用。 I do not have a response or request object.
我没有响应或请求对象。 I do not want to store the token in DB as of now, What could be the next best way to store oauth token until it expires.
我现在不希望将令牌存储在数据库中,在到期之前存储oauth令牌的下一个最佳方法是什么。
Can someone suggest an approach that does not involve cookies or DB. 有人可以建议一种不涉及cookie或数据库的方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.