随笔分类 -  javaUtils

摘要:public String getString() { String pkValue; String str = new SimpleDateFormat("yyyyMMddHHmmssSSS").format(new Date()); int rannum = (int) (new Random().nextDouble() * (999 - 100 + 1)) + 100;// 获取3位随机数 阅读全文
posted @ 2019-08-26 09:58 CJ.Lee 阅读(1218) 评论(0) 推荐(0)
摘要:import java.io.IOException; import java.io.UnsupportedEncodingException; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.security.SecureRandom; im... 阅读全文
posted @ 2018-12-12 17:04 CJ.Lee 阅读(231) 评论(0) 推荐(0)
摘要:1. SSLClient 继承DefaultHttpClient ,设定TLSv1.2,https允许所有hostname 2. https使用SSLClient 创建client 阅读全文
posted @ 2018-02-07 14:31 CJ.Lee 阅读(1492) 评论(0) 推荐(0)
摘要:public static void main(String[] args) throws Exception { SSLContext context = SSLContext.getInstance("TLS"); context.init(null, null, null); SSLSocketFactory factory... 阅读全文
posted @ 2018-02-07 14:22 CJ.Lee 阅读(266) 评论(0) 推荐(0)
摘要:private static VIPTest vipTest = null; protected static ArrayList orgList = null; private VIPTest() { } public static VIPTest getInstance() { if (null == vipTest) { synchronized (VIPTest.c... 阅读全文
posted @ 2018-01-11 10:57 CJ.Lee 阅读(118) 评论(0) 推荐(0)
摘要:Linux或windows的ip地址 阅读全文
posted @ 2017-04-12 17:57 CJ.Lee 阅读(655) 评论(0) 推荐(0)