Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any Spring-Security-based production-ready security package for Java?

I'm designing the security subsystem for a new product. The system requires the following:

  • Complex user/group/permission model, both service-level and domain-level (ACL)
  • Administration UI for the above
  • Rules performed upon user actions (account disable on failed login, password complexity requirements, etc).

Before going ahead and implementing most of the features that Spring Security (2.x) lacks, I was wondering if anyone is familiar with and can recommend a package that may already implement / support these requirements? ideally JAR + WAR that can be dropped into the project and support everything off-the-shelf.

Thanks

like image 302
Electric Monk Avatar asked Oct 27 '09 10:10

Electric Monk


People also ask

What is Spring Security in Java?

Spring Security is a powerful and highly customizable authentication and access-control framework. It is the de-facto standard for securing Spring-based applications. Spring Security is a framework that focuses on providing both authentication and authorization to Java applications.

Which security protection is used by Spring for all request of application?

Cross-Site-Request-Forgery: CSRF However, the quick takeaway is, that by default Spring Security protects any incoming POST (or PUT/DELETE/PATCH) request with a valid CSRF token.

How security is provided in spring boot?

If Spring Security is on the classpath, Spring Boot automatically secures all HTTP endpoints with “basic” authentication. However, you can further customize the security settings. The first thing you need to do is add Spring Security to the classpath.


1 Answers

Not exactly what you are looking for, but you might be interested in checking out jSecurity. It is a well thought out security framework that handles authentication, authorization, and fine-grained permissions. But from what I can gather, much like Spring Security, they try not to make assumptions about how this data is stored and organized. (I haven't found, for example, a reference implementation for User, Roles, Permissions, etc. in a database.)

Note that the JSecurity project has permanently moved to the Apache Software Foundation and is now known as the Apache Shiro project.

like image 130
AWhitford Avatar answered Nov 02 '22 06:11

AWhitford