public class MD5Util extends Object
| Constructor and Description |
|---|
MD5Util() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
compareMd5(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Map<String,String> clientMd5Map) |
static String |
compareMd5OldResult(List<String> changedGroupKeys) |
static String |
compareMd5ResultString(List<String> changedGroupKeys) |
static long |
copy(Reader input,
Writer output) |
static Map<String,String> |
getClientMd5Map(String configKeysString)
解析传输协议 传输协议有两种格式(w为字段分隔符,l为每条数据分隔符): 老报文:D w G w MD5 l 新报文:D w G w MD5 w T l
|
static String |
toString(InputStream input,
String encoding) |
static String |
toString(Reader reader) |
public static List<String> compareMd5(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Map<String,String> clientMd5Map)
public static String compareMd5ResultString(List<String> changedGroupKeys) throws IOException
IOExceptionpublic static Map<String,String> getClientMd5Map(String configKeysString)
configKeysString - 协议字符串public static String toString(InputStream input, String encoding) throws IOException
IOExceptionpublic static String toString(Reader reader) throws IOException
IOExceptionpublic static long copy(Reader input, Writer output) throws IOException
IOExceptionCopyright © 2018–2019 Alibaba Group. All rights reserved.