aspectj « Security « Spring Q&A





1. AspectJ Advice on Spring Security ProviderManager throws exception on startup    stackoverflow.com

Does anyone know why when I try to create an advice around the "doAuthentication" method of the Spring Security (v3.0) ProviderManager my application throws an exception on startup? I am autowiring an ...

2. How can I access methods attributes with Spring AOP (AspectJ-style)?    stackoverflow.com

I need to intrecept some methods and their attributes by using annotations as point cuts, but how can I access those method attributes. I have following code that succesfully can run ...

3. Spring MVC + Before Advice check security    stackoverflow.com

I'm testing Spring AOP framework and have the following question. I have the following code:

package danny.test.controllers;

@Controller
public class MyController{

@Autowired
private DaoService service;

@RequestMapping(value="/save",method = RequestMethod.POST)
      public String addUser(@Valid MyClass myClass, ...

4. Access a business method's local variable in a method which is in an ASPECT    stackoverflow.com

I want to access a local variable from a method in a business class, in a method which is in an aspect class. For instance

class BusinessClass {
    public ...

5. How to access to the returning Object instance of an advised method    stackoverflow.com

I'm using spring AOP to advice my services methods and especially ones returning an object, I want to have access to that object during advice processing. My configuration is working fine, no ...

6. How to create an aspect around a method in a class that implements java.security.Principal?    stackoverflow.com

Does anyone know how one would go about creating an aspect around the method "getName()" in a class that implements the interface java.security.Principal? I am using spring and below is the pertinent ...

7. How to access a PathVariable from an aspect?    stackoverflow.com

I'm using Spring-MVC and aspectJ. I'm trying to create an advice that validates a parameter that is received as a PathVariable. To be more specific, the PathVariable is a user Id and I ...

8. access class variable in aspect class    stackoverflow.com

i am creating an aspect class with spring aspectj as follow

@Aspect
public class AspectDemo {
  @Pointcut("execution(* abc.execute(..))")
     public void executeMethods() { }

 @Around("executeMethods()")
    public ...

9. Spring Security /AspectJ pointcut    stackoverflow.com

Is it possible to protect my @Controller classes using pointcut? I tried:

<global-method-security pre-post-annotations="enabled">
    <!-- Block anything ending with the word 'Controller'-->
    <protect-pointcut expression="execution(* my.pkg.*Controller.*(..))" ...





10. aspectj-autoproxy + spring security + ldap EQUALS NPE    forum.springsource.org

aspectj-autoproxy + spring security + ldap EQUALS NPE This is something that has been discussed before: http://forum.springsource.org/showth...-autoproxy-NPE With the corresponding fixed jira: https://jira.springsource.org/browse/SEC-933 All the same I cannot seem to make ...

11. Method security with aspectj    forum.springsource.org

Hi all, I have managed to secure my methods using @PreAuthorize but it only seems to work once methods have been pushed in. I've tried using an interface and obviously editing ...

12. Problem with Spring + AspectJ + Acegi    forum.springsource.org

Hi I have a app with Spring + AspectJ and had some problems with the warning: Code: WARN org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect BeanFactory has not been set on [org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect]: Make sure this configurer runs ...

13. Acegi Security & @AspectJ - newbe questions    forum.springsource.org

Aug 1st, 2007, 12:41 PM #1 st0rm View Profile View Forum Posts Private Message Junior Member Join Date Aug 2007 Posts 7 Acegi Security & @AspectJ - newbe questions Hi, Currently ...

14. Can I access applicationContext from AspectJ ?    forum.springsource.org

Hi !! I've tested Spring 2.5-rc2 load time weaving. But I don't find out how to access spring bean(which is defined in applicationContext) from Aspect. Any comments will be helpful ^^ ...

15. global-method-security + aspectj-autoproxy = NPE    forum.springsource.org

global-method-security + aspectj-autoproxy = NPE Hello, I have been using Spring Security 2.0.2 for a while now and finally got around to attempting global method security at the service layer. For ...

16. @Secured @RolesAllowed and AspectJ    forum.springsource.org

hi there, a colleague told me, that the usage of jsr250 (@rolesallowed) is not possible when using aspectj. is this right? can i use jsr250/@rolesallowed only with spring aop? thanks in ...





17. Spring security and AspectJ    forum.springsource.org

Hello, can somebody tell me in which way Spring-Security depends on AspectJ? I mean, which features of Spring-Security depends from AspectJ? Can I use Spring-Security without AspectJ? Thank you. Bye!

18. AspectJ implementation with spring security    forum.springsource.org

AspectJ implementation with spring security Hi All, We are facing an issue related to the Method level security while implementing Spring security in our application. We need to implement the method ...

19. AspectJ Joinpoint Security and JSTL    forum.springsource.org

Hi, Im using JoinPoint aspect to secure method calls on domain objects created outside of bean context, as per [1] Things work OK in straight java classes where the methods are ...