微博参数管理类AccessTokenKeeper Java实现.pdfVIP

  • 0
  • 0
  • 约5.54千字
  • 约 6页
  • 2026-02-10 发布于北京
  • 举报

微博参数管理类AccessTokenKeeper Java实现.pdf

/**版权所有(C)2010‑2013新浪微博开源项目**根据Apache许可证,版本2.

0(“许可证”)许可;*除非遵守许可证,否则不得使用此文件。*您可以从以下

网址获取许可证副本:**/licenses/LICENSE‑2.0**除

非适用法律要求或书面同意,否则根据许可证分发的软件*按“原样”分发,不提

供任何形式的明示或暗示保证。*有关权限和限制的具体语言,请参阅许可证。*/

packagecom.lm.weibo.android;

importandroid.content.Context;import

android.content.SharedPreferences;import

android.content.SharedPreferences.Editor;

importcom.sina.weibo.sdk.auth.Oauth2AccessToken;

/

***该类定义了微博授权时所需要的参数。**@authorSINA*@since

2013‑10‑07*/publicclassAccessTokenKeeper{publicstaticfinalString

____

PREFERENCESNAME=comlmweiboandroid;

_

publicstaticfinalStringKEYUID=uid;publicstaticfinal

S___

tringKEYACCESSTOKEN=accesstoken;publicstatic

___

finalStringKEYEXPIRESIN=expiresin;

/**

*将Token对象保存到

SharedPreferences。**@param

context应用程序上下文环境*@param

tokenToken对象

/*

*Copyright(C)2010-2013TheSINAWEIBOOpenSourceProject

*

*LicensedundertheApacheLicense,Version2.0(theLicense);

*youmaynotusethisfileexceptincompliancewiththeLicense.

*YoumayobtainacopyoftheLicenseat

*

*/licenses/LICENSE-2.0

*

*Unlessrequiredbyapplicablelaworagreedtoinwriting,software

*distributedundertheLicenseisdistributedonanASISBASIS,

*WITHOUTWARRANTIESORCONDITIONSOFANYKIND,eitherexpressorimplied.

*SeetheLicenseforthespecificlanguagegoverningpermissionsand

*limitationsundertheLicense.

*/

packagecom.lm.weibo.android;

importandroid.content.Context;

importandroid.content.SharedPreferences;

importandroid.content.SharedPreferences.Editor;

importcom.sina.weibo.sdk.auth.Oauth2AccessToken;

/**

*该类定义了微博授权时所需要的参数。

*

*@authorSINA

*@since2013-10-07

*/

publicclassAccessTokenKeeper{

publicstaticfinalStringPREFERENCES_NAME=com_lm_weibo_android;

文档评论(0)

1亿VIP精品文档

相关文档