public class MD5Util extends Object
| 构造器和说明 |
|---|
MD5Util() |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<String> |
compareMd5(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Map<String,String> clientMd5Map)
Compare Md5.
|
static String |
compareMd5OldResult(List<String> changedGroupKeys)
Compare old Md5.
|
static String |
compareMd5ResultString(List<String> changedGroupKeys)
Join and encode changedGroupKeys string.
|
static long |
copy(Reader input,
Writer output)
Copy data to buffer.
|
static Map<String,String> |
getClientMd5Map(String configKeysString)
Parse the transport protocol, which has two formats (W for field delimiter, L for each data delimiter) old: D w G
w MD5 l new: D w G w MD5 w T l.
|
static String |
toString(InputStream input,
String encoding) |
static String |
toString(Reader reader)
Reader to String.
|
public static List<String> compareMd5(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Map<String,String> clientMd5Map)
public static String compareMd5OldResult(List<String> changedGroupKeys)
public static String compareMd5ResultString(List<String> changedGroupKeys) throws IOException
IOExceptionpublic static Map<String,String> getClientMd5Map(String configKeysString)
configKeysString - protocolpublic 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–2022 Alibaba Group. All rights reserved.