JBoss Community

PicketBox Audit

new comment by Anil Saldhana View all comments on this document

Very similar to the @Authorization annotation.

 

Try:

 

 

@SecurityAudit(modules ={@Module(code = SomeAuditProvider.class, options =
{@ModuleOption(key="roles",value="validuser")})})
public class AnnotatedPOJO
{
}

 

You can resuse the audit providers in PicketBox (http://anonsvn.jboss.org/repos/picketbox/trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/audit/providers/). Currently, we provide Log4J provider.  You can certainly write your own provider.