Apache Shiro 1.2.0版发布

2012年1月24日,Shiro团队发布Apache Shiro 1.2.0版本。该版本修复了BUG并增加了多项新特性,如禁用会话的能力、支持在web应用中初始化ServletContextListener、命令行工具用于安全地哈希密码等。

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

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

这些新功能包括:

  • The ability to disable sessions per filter chain or entirely for an application.
  • Servlet Context Listener initialization in web apps (to allow components to utilize Shiro before Filter initialization)
  • A command line program to securely hash passwords (or any url, file or stream input for that matter).
  • New secure password hash formats that adhere to Modular Crypt Format conventions.  These secure password hashes can be computed with the above named command line program and saved in text config (e.g. shiro.ini) directly.  Plaintext passwords should never be stored.  For those familiar with the Apache HTTPD passwd program, this achieves the same benefits.
  • A new LogoutFilter, as many apps don't need to show a view during logout (just logout and redirect to some known location).
  • Shiro filters can be enabled or disabled without removing them from the filter chain - useful in development (e.g. turn ssl requirement off in dev, but keep it on in production).
  • A lot of work has gone into making secure password hash storage and comparison a much simpler task in Shiro, focused around the new concept of a PasswordService.  You can use a PasswordService directly in your application code to hash passwords securely.  You can then configure a PasswordMatcher on your Realm(s) to use the same PasswordService for password comparisons.  See the PasswordService JavaDoc for example .ini configuration:

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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

peterwanghao

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值