您好,欢迎来到微智科技网。
搜索
您的当前位置:首页在jsp中作HTTP认证的方法_MySQL

在jsp中作HTTP认证的方法_MySQL

来源:微智科技网


最近研究了jsp中作HTTP认证的问题,它的工作方式如下:


*

End of data


* We don''t try to stop the converion when we find the"="end of data padding char.
* We simply add zero bytes to the unencode buffer.


*/
public static String decode(String encoded)

{
StringBuffer sb=new StringBuffer();
int maxturns;
//work out how long to loop for.
if(encoded.length()%3==0)
maxturns=encoded.length();
else
maxturns=encoded.length()+(3-(encoded.length()%3));
//tells us whether to include the char in the unencode
boolean skip;
//the unencode buffer
byte[] unenc=new byte[4];
byte b;

Copyright © 2019- 7swz.com 版权所有 赣ICP备2024042798号-8

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务