How to programmatically add Security to a Spring Bean
- by Luiz Henrique Martins Lins Rol
I´m using spring-security-tiger-2.0.5.
Is there a way to programmatically add a security proxy to a Spring Bean?
I´m constructing the bean through BeanDefinitionBuilder, and i´d like to add same behaviour as the @Secured annotation.
The roleName´s @Secured equivalent will be passed as a parameter.