Apache Shiro 1.2.0版发布

Shiro小组于2012年1月24日发布了Apache Shiro 1.2.0版,此版本在修复BUG的同时增加了新功能,包括会话管理、安全密码哈希、命令行工具等,显著提高了应用的安全性和易用性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

2012年1月24日,Shiro小组发布了Apache Shiro 1.2.0版。此版本在修改BUG的同时增加了一些新功能。

这些新功能包括:

  • The ability to disable sessions per filter chain or entirely for anapplication.
  • Servlet Context Listener initialization in web apps (to allowcomponents to utilize Shiro before Filter initialization)
  • A command line program to securely hash passwords (or any url, fileor stream input for that matter).
  • New secure password hash formats that adhere to Modular Crypt Formatconventions. These secure password hashes can be computed with theabove named command line program and saved in text config (e.g.shiro.ini) directly. Plaintext passwords should never be stored. Forthose familiar with the Apache HTTPD passwd program, this achieves thesame benefits.
  • A new LogoutFilter, as many apps don't need to show a view duringlogout (just logout and redirect to some known location).
  • Shiro filters can be enabled or disabled without removing them fromthe filter chain - useful in development (e.g. turn ssl requirementoff in dev, but keep it on in production).
  • A lot of work has gone into making secure password hash storage andcomparison a much simpler task in Shiro, focused around the newconcept of a PasswordService. You can use a PasswordService directlyin your application code to hash passwords securely. You can thenconfigure a PasswordMatcher on your Realm(s) to use the samePasswordService for password comparisons. See the PasswordServiceJavaDoc for example .ini configuration:

More complete PasswordService and related configdocumentation will beadded to the Shiro website in the next few days - itwas better torelease now for the many who are waiting on the release, andfollow upwith this part of the documentation shortly.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值