aspose file tools*
The moose likes Other Application Frameworks and the fly likes Security Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Security" Watch "Security" New topic
Author

Security

Suman Chaudhuri
Greenhorn

Joined: Jun 01, 2004
Posts: 13
What type of security features are provided in Spring ?

a) Is there support for roles and principals ?
b) If I want to restrict a component in that it can be used by a certain role (eg, only Managers), how is this achieved in Spring ?
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Suman Chaudhuri:
What type of security features are provided in Spring ?

a) Is there support for roles and principals ?
b) If I want to restrict a component in that it can be used by a certain role (eg, only Managers), how is this achieved in Spring ?

Spring supports a variety of security features (authentication using a number of methods and authorization using a number of methods) through Acegi Security System for Spring. I haven't used Acegi myself but I do know it supports role-based authorization with all sorts of voting schemes and authentication using a variety of methods from LDAP to JDBC to SSO and so forth.

I'd suggest browsing the Acegi documentation (or buying a Spring book;) for more details.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Security