jetbrick-commons/src/main/java/jetbrick/web/servlet/RequestUtils.java
public static String encodeHttpBasic(String userName, String password) {
        String encode = userName + ":" + password;
        return "Basic " + Base64.encodeToString(encode.getBytes());
    }
public static String encodeHttpBasic(String userName, String password) {
        String encode = userName + ":" + password;
        return "Basic " + Base64.encodeToString(encode.getBytes());
    }
public static String encodeHttpBasic ( String userName , String password ) { String encode = userName + ":" + password ; return "Basic " + Base64 . encodeToString ( encode . getBytes ( ) ) ; }
客户端对Http Basic验证的 Header进行编码.
客户端对Http Basic验证的 Header进行编码 .