文章分类 -  how tomcat works 读书笔记

摘要:http://www.fenesky.com/blog/2014/07/19/how-https-works.htmlHTTPS其实是有两部分组成:HTTP +SSL/ TLS,也就是在HTTP上又加了一层处理加密信息的模块。服务端和客户端的信息传输都会通过TLS进行加密,所以传输的数据都是加密后的... 阅读全文
posted @ 2015-11-01 20:22 程序猿进化之路 阅读(170) 评论(0) 推荐(0)
摘要:/** * The count of allocations that are currently active (even if they * are for the same instance, as will be true on a non-STM servlet). ... 阅读全文
posted @ 2015-10-13 20:43 程序猿进化之路 阅读(205) 评论(0) 推荐(0)
摘要:在tomcat中利用领域对象realm进行验证,Realm中的主要方法为authenticate(),通常realm与context容器相关联 public Principal authenticate(String username, String credentials) { ... 阅读全文
posted @ 2015-10-12 22:38 程序猿进化之路 阅读(353) 评论(0) 推荐(0)
摘要:protected synchronized String getPassword(String username) { // Look up the user's credentials String dbCredentials = null; Prep... 阅读全文
posted @ 2015-10-12 16:28 程序猿进化之路 阅读(175) 评论(0) 推荐(0)