且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用排球实现摘要身份验证?

更新时间:2022-03-19 05:18:35

最适合您的解决方案是使用HttpDigestStack.您可以在这里找到文档: http://www.java2s .com/Open-Source/Android_Free_Code/Framework/platform/com_gm_android_volleyHttpDigestStack_java.htm

The best solution for you is, indeed, use the HttpDigestStack. You can find the docs right here: http://www.java2s.com/Open-Source/Android_Free_Code/Framework/platform/com_gm_android_volleyHttpDigestStack_java.htm

您要做的就是在使用Volley创建新的RequestQueue时,提供HttpDigestStack的新实例作为附加参数.您可以按照以下示例进行操作:

All you have to do is to provide a new instance of a HttpDigestStack as an additional parameter when creating a new RequestQueue using Volley. You can follow this example:

Volley.newRequestQueue(context, new HttpDigestStack());