Package tech.mgl.core.utils.security
Class MGL_URLUtils
java.lang.Object
tech.mgl.core.utils.security.MGL_URLUtils
ClassName: URLUtils 用于路径的加密 URL地址的加密等等
- Author:
- hotpot https://mgl.tech
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]build3DesKey(String keyStr) static Stringcrypt(String content, String keyStr, MGL_URLUtils.CryptType ty) 加密解密getQueryParameter(String url, String key) getQueryParameters(String url) getQueryParameters(String url, String ky) static voidsplitQuery(String query, String useKey)
-
Constructor Details
-
MGL_URLUtils
public MGL_URLUtils()
-
-
Method Details
-
crypt
public static String crypt(String content, String keyStr, MGL_URLUtils.CryptType ty) throws Exception 加密解密- Returns:
- : String
- Throws:
Exception
-
build3DesKey
- Throws:
UnsupportedEncodingException
-
main
-
getQueryParameter
- Throws:
URISyntaxException
-
splitQuery
-
getQueryParameters
- Throws:
URISyntaxException
-
getQueryParameters
public static Map<String,List<String>> getQueryParameters(String url, String ky) throws URISyntaxException - Throws:
URISyntaxException
-