×

注意!页面内容来自https://shiro.apache.org/features.html,本站不储存任何内容,为了更好的阅读体验进行在线解析,若有广告出现,请及时反馈。若您觉得侵犯了您的利益,请通知我们进行删除,然后访问 原网页

Fork me on GitHub

Apache Shiro Logo Simple. Java. Security. Apache Software Foundation Event Banner

Handy Hint
Shiro v1 version notice

As of February 282024Shiro v1 was superseded by v2.

Apache Shiro aims to be the most comprehensivebut also the easiest to use Java security framework available. Here are some of the frameworks finer points:

  • The easiest to understand Java Security API anywhere. Class and Interface names are intuitive and make sense. Anything is pluggable but good defaults exist for everything.

  • Support authentication ('logins') across one or more pluggable data sources (LDAPJDBCActiveDirectoryetc).

  • Perform authorization ('access control') based on roles or fine-grained permissionsalso using pluggable data sources.

  • First-class caching support for enhanced application performance.

  • Built-in POJO-based Enterprise Session Management. Use in both web and non-web environments or in any environment where Single Sign On (SSO) or clustered or distributed sessions are desired.

  • Heterogeneous client session access. You are no longer forced to use only the <tt>httpSession</tt> or Stateful Session Beanswhich often unnecessarily tie applications to specific environments. Flash appletsC# applicationsJava Web Startand Web Applicationsetc. can now all share session state regardless of deployment environment.

  • Simple Single Sign-On (SSO) support piggybacking the above Enterprise Session Management. If sessions are federated across multiple applicationsthe user’s authentication state can be shared too. Log in once to any application and the others all recognize that log-in.

  • Secure data with the easiest possible Cryptography APIs availablegiving you power and simplicity beyond what Java provides by default for ciphers and hashes.

  • An incredibly robust yet low-configuration web framework that can secure any url or resourceautomatically handle logins and logoutsperform Remember Me servicesand more.

  • Extremely low number of required dependencies. Standalone configuration requires only <tt>slf4j-api.jar</tt> and one of slf4j’s binding .jars. Web configuration additionally requires <tt>commons-beanutils-core.jar</tt>. Feature-based dependencies (Ehcache cachingQuartz-based Session validationSpring dependency injectionetc.) can be added when needed.

Want more information on what Shiro can do?

Check out the specific features for each of Shiro’s major components: AuthenticationAuthorizationSession Managementand Cryptography.

Get Started in 10 Minutes with Shiro

Try out Shiro for yourself with our 10-Minute Tutorial. And if you have any questions about Shiroplease check out our community forum or user mailing list for answers from the community.