云自无心水自闲

天平山上白云泉,云自无心水自闲。何必奔冲山下去,更添波浪向人间!
posts - 288, comments - 524, trackbacks - 0, articles - 6
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

Java

Sun Java

posted @ 2016-01-28 18:06 云自无心水自闲 阅读(447) | 评论 (0)  编辑 |

     摘要: 在我的上一篇文章中介绍了如何进行GPG加密解密。
加密解密的基本操作流程是,用户使用公钥对明文进行加密,解密方使用私钥对密文进行解密。

在实际应用中,除了加密保证文本内容不泄露外,同时还要考虑能够验证密文发送方的身份,比较普遍使用的方法就是签名。
本文主要对具体的方法进行介绍并附上源代码。  阅读全文

posted @ 2015-12-11 21:40 云自无心水自闲 阅读(1225) | 评论 (0)  编辑 |

posted @ 2015-10-08 08:45 云自无心水自闲 阅读(3258) | 评论 (0)  编辑 |

posted @ 2015-06-16 21:27 云自无心水自闲 阅读(18383) | 评论 (0)  编辑 |

posted @ 2015-06-11 21:59 云自无心水自闲 阅读(7684) | 评论 (0)  编辑 |

posted @ 2015-06-11 14:09 云自无心水自闲 阅读(4766) | 评论 (0)  编辑 |

posted @ 2015-04-27 15:31 云自无心水自闲 阅读(1522) | 评论 (0)  编辑 |

posted @ 2014-12-10 06:50 云自无心水自闲 阅读(11715) | 评论 (5)  编辑 |

     摘要: 在Netty中处理耗费时间的任务而不阻塞I/O
  阅读全文

posted @ 2014-11-27 07:36 云自无心水自闲 阅读(9828) | 评论 (0)  编辑 |

posted @ 2013-10-14 20:35 云自无心水自闲 阅读(472) | 评论 (0)  编辑 |

posted @ 2011-08-31 07:25 云自无心水自闲 阅读(3174) | 评论 (0)  编辑 |

posted @ 2011-08-26 08:57 云自无心水自闲 阅读(3808) | 评论 (0)  编辑 |

posted @ 2011-05-30 10:42 云自无心水自闲 阅读(836) | 评论 (0)  编辑 |

posted @ 2011-03-29 05:53 云自无心水自闲 阅读(2163) | 评论 (0)  编辑 |

posted @ 2011-02-07 13:22 云自无心水自闲 阅读(1585) | 评论 (0)  编辑 |

posted @ 2010-12-15 07:51 云自无心水自闲 阅读(3096) | 评论 (0)  编辑 |

posted @ 2010-11-24 06:08 云自无心水自闲 阅读(2043) | 评论 (3)  编辑 |

posted @ 2010-11-02 08:10 云自无心水自闲 阅读(2606) | 评论 (1)  编辑 |

posted @ 2010-11-02 07:58 云自无心水自闲 阅读(599) | 评论 (0)  编辑 |

posted @ 2010-10-20 07:38 云自无心水自闲 阅读(1663) | 评论 (0)  编辑 |

posted @ 2010-09-13 12:42 云自无心水自闲 阅读(2368) | 评论 (1)  编辑 |

posted @ 2010-08-18 07:13 云自无心水自闲 阅读(1034) | 评论 (0)  编辑 |

posted @ 2010-07-15 08:20 云自无心水自闲 阅读(1522) | 评论 (2)  编辑 |

posted @ 2010-07-05 09:38 云自无心水自闲 阅读(4100) | 评论 (2)  编辑 |

posted @ 2010-06-23 07:16 云自无心水自闲 阅读(2486) | 评论 (0)  编辑 |

posted @ 2010-06-18 17:06 云自无心水自闲 阅读(2359) | 评论 (0)  编辑 |

posted @ 2010-06-17 06:18 云自无心水自闲 阅读(3672) | 评论 (0)  编辑 |

posted @ 2010-06-11 08:12 云自无心水自闲 阅读(1475) | 评论 (0)  编辑 |

posted @ 2010-06-03 10:31 云自无心水自闲 阅读(1925) | 评论 (1)  编辑 |

posted @ 2010-05-24 19:58 云自无心水自闲 阅读(3108) | 评论 (2)  编辑 |

posted @ 2010-04-20 11:21 云自无心水自闲 阅读(1822) | 评论 (2)  编辑 |

posted @ 2010-03-25 10:44 云自无心水自闲 阅读(2130) | 评论 (0)  编辑 |

posted @ 2010-03-19 07:40 云自无心水自闲 阅读(2961) | 评论 (0)  编辑 |

posted @ 2010-03-08 19:50 云自无心水自闲 阅读(1739) | 评论 (1)  编辑 |

posted @ 2010-03-06 15:54 云自无心水自闲 阅读(2228) | 评论 (0)  编辑 |

posted @ 2010-03-01 12:21 云自无心水自闲 阅读(371) | 评论 (0)  编辑 |

posted @ 2010-02-12 07:26 云自无心水自闲 阅读(3288) | 评论 (3)  编辑 |

posted @ 2010-02-06 12:36 云自无心水自闲 阅读(3545) | 评论 (4)  编辑 |

posted @ 2010-02-04 19:17 云自无心水自闲 阅读(3198) | 评论 (1)  编辑 |

posted @ 2010-02-01 12:57 云自无心水自闲 阅读(3892) | 评论 (2)  编辑 |

posted @ 2010-01-21 07:28 云自无心水自闲 阅读(3644) | 评论 (0)  编辑 |

posted @ 2010-01-15 20:49 云自无心水自闲 阅读(2355) | 评论 (4)  编辑 |

posted @ 2010-01-12 20:17 云自无心水自闲 阅读(2838) | 评论 (0)  编辑 |

posted @ 2010-01-06 12:20 云自无心水自闲 阅读(3083) | 评论 (2)  编辑 |

posted @ 2009-11-19 13:44 云自无心水自闲 阅读(5503) | 评论 (2)  编辑 |

posted @ 2009-10-15 20:09 云自无心水自闲 阅读(11289) | 评论 (16)  编辑 |

posted @ 2009-10-07 20:18 云自无心水自闲 阅读(3917) | 评论 (6)  编辑 |

     摘要: Tapestry IoC容器从历史上来说,是从从HiveMind继承发展而来,但是HiveMind和目前大红大紫的Spring都不能满足Tapestry的一些特定的需求,所以全新开发了一套IoC的容器。
其核心思想就是使用Java代码自身来解决依赖注入而不是由Xml之类的配置文件来完成,这和Guice的思想是非常相似的,Lewis也承认从Guice那里借鉴了不少。
另外需要说明一下的是,Tapesty还从中国的一个非常古老但又充满哲理的游戏--围棋中借鉴了一些术语和思想。大意是围棋中经常要把棋子走的轻盈(Lightness),让每个棋子都能尽量地高效。编程也一样要轻量(Lightness)。  阅读全文

posted @ 2009-09-12 22:07 云自无心水自闲 阅读(2422) | 评论 (1)  编辑 |

posted @ 2009-09-04 14:19 云自无心水自闲 阅读(6530) | 评论 (2)  编辑 |

     摘要: 在我的随笔Extjs Tree + JSON + Struts2中我介绍了如何异步加载一个Extjs的树,但是很多网友留言说不能成功操作。现在我自己做了一个所有源代码的包,供大家下载。  阅读全文

posted @ 2009-09-01 11:07 云自无心水自闲 阅读(7441) | 评论 (14)  编辑 |

posted @ 2009-08-24 14:25 云自无心水自闲 阅读(558) | 评论 (0)  编辑 |

posted @ 2009-08-21 10:20 云自无心水自闲 阅读(8875) | 评论 (1)  编辑 |

posted @ 2009-08-10 13:24 云自无心水自闲 阅读(4008) | 评论 (0)  编辑 |

posted @ 2009-07-10 20:15 云自无心水自闲 阅读(4350) | 评论 (5)  编辑 |

posted @ 2009-07-09 12:56 云自无心水自闲 阅读(1710) | 评论 (3)  编辑 |

posted @ 2009-06-26 20:56 云自无心水自闲 阅读(2041) | 评论 (9)  编辑 |

     摘要: Tapestry最基本的组成部分:页面组件  阅读全文

posted @ 2009-06-20 19:57 云自无心水自闲 阅读(2507) | 评论 (3)  编辑 |

     摘要: Tapestry重要特性之一:页面的缓存以及页面间值的传递  阅读全文

posted @ 2009-06-05 14:24 云自无心水自闲 阅读(2713) | 评论 (0)  编辑 |

     摘要: Tapestry的页面模板语言  阅读全文

posted @ 2009-06-03 17:17 云自无心水自闲 阅读(2225) | 评论 (2)  编辑 |

     摘要: Tapestry的页面  阅读全文

posted @ 2009-05-31 20:31 云自无心水自闲 阅读(2986) | 评论 (0)  编辑 |

     摘要: Tapestry的基本配置和目录结构  阅读全文

posted @ 2009-05-30 13:55 云自无心水自闲 阅读(3084) | 评论 (0)  编辑 |

posted @ 2009-05-16 19:38 云自无心水自闲 阅读(2188) | 评论 (1)  编辑 |

posted @ 2009-05-07 21:08 云自无心水自闲 阅读(1702) | 评论 (0)  编辑 |

posted @ 2009-05-01 12:43 云自无心水自闲 阅读(314) | 评论 (0)  编辑 |

     摘要: 最近在使用FreeMarker中,总结的一些小技巧和方法  阅读全文

posted @ 2009-04-28 12:19 云自无心水自闲 阅读(3399) | 评论 (1)  编辑 |

posted @ 2009-04-02 07:36 云自无心水自闲 阅读(329) | 评论 (0)  编辑 |

posted @ 2009-01-06 17:30 云自无心水自闲 阅读(2132) | 评论 (0)  编辑 |

     摘要: 发现了struts2在线文档中的一个小错误,希望大家在使用的时候注意  阅读全文

posted @ 2008-12-30 13:17 云自无心水自闲 阅读(1434) | 评论 (3)  编辑 |

posted @ 2008-12-30 13:03 云自无心水自闲 阅读(2679) | 评论 (2)  编辑 |

posted @ 2008-12-11 19:29 云自无心水自闲 阅读(460) | 评论 (0)  编辑 |

posted @ 2008-12-11 09:09 云自无心水自闲 阅读(481) | 评论 (0)  编辑 |

posted @ 2008-12-01 20:13 云自无心水自闲 阅读(985) | 评论 (0)  编辑 |

posted @ 2008-11-21 07:59 云自无心水自闲 阅读(2551) | 评论 (2)  编辑 |

posted @ 2008-09-02 21:02 云自无心水自闲 阅读(5429) | 评论 (5)  编辑 |

posted @ 2008-08-20 19:47 云自无心水自闲 阅读(441) | 评论 (0)  编辑 |

posted @ 2008-07-12 18:57 云自无心水自闲 阅读(3622) | 评论 (3)  编辑 |

posted @ 2008-07-01 13:33 云自无心水自闲 阅读(6657) | 评论 (7)  编辑 |

posted @ 2008-06-23 20:14 云自无心水自闲 阅读(10739) | 评论 (15)  编辑 |

posted @ 2008-05-13 11:08 云自无心水自闲 阅读(7462) | 评论 (1)  编辑 |

posted @ 2008-04-11 16:09 云自无心水自闲 阅读(7535) | 评论 (4)  编辑 |

posted @ 2008-03-27 22:08 云自无心水自闲 阅读(12120) | 评论 (16)  编辑 |

posted @ 2008-03-18 14:06 云自无心水自闲 阅读(4284) | 评论 (2)  编辑 |

posted @ 2008-03-17 12:09 云自无心水自闲 阅读(5767) | 评论 (8)  编辑 |

posted @ 2008-02-21 12:03 云自无心水自闲 阅读(1935) | 评论 (2)  编辑 |

posted @ 2008-02-19 09:27 云自无心水自闲 阅读(43615) | 评论 (49)  编辑 |

posted @ 2008-02-12 21:06 云自无心水自闲 阅读(3224) | 评论 (2)  编辑 |

posted @ 2008-02-10 20:56 云自无心水自闲 阅读(12212) | 评论 (8)  编辑 |

posted @ 2008-02-07 07:04 云自无心水自闲 阅读(1551) | 评论 (0)  编辑 |

posted @ 2008-02-06 09:43 云自无心水自闲 阅读(436) | 评论 (0)  编辑 |

posted @ 2008-01-25 13:16 云自无心水自闲 阅读(15278) | 评论 (10)  编辑 |

posted @ 2008-01-24 22:06 云自无心水自闲 阅读(7043) | 评论 (7)  编辑 |

posted @ 2008-01-02 20:48 云自无心水自闲 阅读(8564) | 评论 (3)  编辑 |

posted @ 2007-12-11 19:38 云自无心水自闲 阅读(2675) | 评论 (4)  编辑 |

posted @ 2007-09-22 21:28 云自无心水自闲 阅读(1737) | 评论 (4)  编辑 |

posted @ 2007-09-17 12:42 云自无心水自闲 阅读(537) | 评论 (0)  编辑 |

posted @ 2007-09-10 14:15 云自无心水自闲 阅读(998) | 评论 (0)  编辑 |

posted @ 2007-08-23 00:12 云自无心水自闲 阅读(615) | 评论 (1)  编辑 |

posted @ 2007-08-08 22:37 云自无心水自闲 阅读(6145) | 评论 (6)  编辑 |

posted @ 2007-07-27 20:16 云自无心水自闲 阅读(21538) | 评论 (4)  编辑 |

posted @ 2007-07-27 19:50 云自无心水自闲 阅读(1575) | 评论 (0)  编辑 |

posted @ 2007-07-14 19:21 云自无心水自闲 阅读(2698) | 评论 (0)  编辑 |

posted @ 2007-07-07 00:11 云自无心水自闲 阅读(403) | 评论 (0)  编辑 |

posted @ 2007-06-23 09:11 云自无心水自闲 阅读(788) | 评论 (0)  编辑 |

posted @ 2007-05-18 20:39 云自无心水自闲 阅读(7799) | 评论 (14)  编辑 |

posted @ 2007-04-26 18:01 云自无心水自闲 阅读(5420) | 评论 (14)  编辑 |

posted @ 2007-04-13 13:02 云自无心水自闲 阅读(2194) | 评论 (3)  编辑 |

posted @ 2007-03-29 15:42 云自无心水自闲 阅读(437) | 评论 (0)  编辑 |

posted @ 2007-03-19 12:10 云自无心水自闲 阅读(1459) | 评论 (0)  编辑 |

posted @ 2007-03-15 23:23 云自无心水自闲 阅读(633) | 评论 (0)  编辑 |

posted @ 2007-03-14 15:09 云自无心水自闲 阅读(759) | 评论 (0)  编辑 |

posted @ 2007-03-08 09:51 云自无心水自闲 阅读(1607) | 评论 (0)  编辑 |

posted @ 2007-03-07 23:46 云自无心水自闲 阅读(1318) | 评论 (2)  编辑 |

posted @ 2007-03-07 13:00 云自无心水自闲 阅读(1625) | 评论 (0)  编辑 |

posted @ 2007-03-04 23:08 云自无心水自闲 阅读(1576) | 评论 (0)  编辑 |

posted @ 2007-03-01 00:49 云自无心水自闲 阅读(869) | 评论 (0)  编辑 |

posted @ 2007-02-28 00:52 云自无心水自闲 阅读(2947) | 评论 (2)  编辑 |

posted @ 2007-01-17 01:50 云自无心水自闲 阅读(358) | 评论 (1)  编辑 |

posted @ 2006-12-13 14:04 云自无心水自闲 阅读(937) | 评论 (0)  编辑 |

posted @ 2006-12-12 00:30 云自无心水自闲 阅读(681) | 评论 (0)  编辑 |

posted @ 2006-11-10 09:54 云自无心水自闲 阅读(245) | 评论 (0)  编辑 |

posted @ 2006-10-23 16:24 云自无心水自闲 阅读(800) | 评论 (0)  编辑 |

posted @ 2006-10-20 13:13 云自无心水自闲 阅读(2522) | 评论 (2)  编辑 |

posted @ 2006-03-03 13:34 云自无心水自闲 阅读(865) | 评论 (0)  编辑 |

posted @ 2006-03-01 00:58 云自无心水自闲 阅读(3435) | 评论 (0)  编辑 |

posted @ 2006-02-25 22:14 云自无心水自闲 阅读(314) | 评论 (0)  编辑 |

posted @ 2006-02-17 00:08 云自无心水自闲 阅读(435) | 评论 (0)  编辑 |

posted @ 2006-02-16 16:19 云自无心水自闲 阅读(2685) | 评论 (0)  编辑 |

posted @ 2006-02-16 10:30 云自无心水自闲 阅读(1648) | 评论 (0)  编辑 |

posted @ 2006-02-15 22:51 云自无心水自闲 阅读(275) | 评论 (0)  编辑 |