How to programmatically add Security to a Spring Bean

Posted by Luiz Henrique Martins Lins Rol on Stack Overflow See other posts from Stack Overflow or by Luiz Henrique Martins Lins Rol
Published on 2009-12-24T18:11:17Z Indexed on 2010/05/12 17:04 UTC
Read the original article Hit count: 372

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about spring-security

Related posts about java