This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes Spring Security - Method level Permission Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Security - Method level Permission" Watch "Spring Security - Method level Permission" New topic
Author

Spring Security - Method level Permission

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1372
How to set method level security permission(authorisation) using Spring WS. If i have class level security too, which one(class level / method level ) takes high priority ?
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1372
Any input ?
Philippe Fery
Greenhorn

Joined: Jan 25, 2011
Posts: 1
Hi Kri Shan!

The method level takes higher priority on the class level.

See here: http://download.oracle.com/javaee/5/api/javax/annotation/security/RolesAllowed.html

Specifies the list of roles permitted to access method(s) in an application. The value of the RolesAllowed annotation is a list of security role names. This annotation can be specified on a class or on method(s). Specifying it at a class level means that it applies to all the methods in the class. Specifying it on a method means that it is applicable to that method only. If applied at both the class and methods level , the method value overrides the class value if the two conflict.

;-)
Philippe
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Security - Method level Permission
 
Similar Threads
Pointbase : How can I create a stored procedures with Pointbase database?
Custom Security like EJB using JAAS
Security Modifier!
why we should use method security in spring security?
Does Spring Web Flow 2 have role based authorization to execute flow feature?