打印本文 打印本文  关闭窗口 关闭窗口
在jsp中作HTTP认证的方法
作者:采集员 文章来源:来源于网络 点击数: 更新时间:2005/9/10 14:29:25
;            if(b>=52&&b<62)
                                        sb.append((char)(b-4));
                                        if(b==62)
                                        sb.append('+');
                                        if(b==63)
                                        sb.append('/');
                                        if(sb.length()%76==0)
                                        sb.append(' ');
                                }
                                //now set the end chars to be pad character if there
                                //was less than integral input (ie: less than 24 bits)
                                if(end)
                                {
                                        if(j==1)
                                        sb.append("==");
                                        if(j==2)
                                        sb.append('=');
                                }
                                enc[0]=0;enc[1]=0;enc[2]=0;
                                j=0;
                        }
                }
                return sb.toString();
        }
}

上一页  [1] [2] [3] 



打印本文 打印本文  关闭窗口 关闭窗口