Java security framework for authentication, authorization, sessions and cryptography
open sourceApache-2.0free
Apache Shiro is an Apache Software Foundation Java security framework for authentication, authorization, cryptography and session management, with an API meant to be easy to understand. It logs users in against pluggable data sources (LDAP, JDBC, Active Directory), controls access by roles or fine-grained permissions, manages sessions in any environment (even outside web or EJB containers), and integrates with web applications and Jakarta EE.
Problems it solves
- add login and role-based access control to a Java app
- manage user sessions in a Java app without a servlet container
- authenticate Java users against LDAP or Active Directory
Features
- authentication against LDAP, JDBC, Active Directory and other realms
- role and permission based authorization
- session management outside web containers
- cryptography API
- web and Jakarta EE integration
Alternatives
The same job
These do what Apache Shiro does.
- Spring Security Authentication and access control for Spring and Java applications
- Sa-Token Lightweight Java authentication and authorization framework: login sessions, permissions and roles, SSO, OAuth 2.0 server, gateway and RPC auth, JWT and API signing.