I'm using spring mvc 4 and I have some rest services.
Some of these methods are annotated with:
@PreAuthorize("hasAnyAuthority('myAuth1', 'myAuth2', 'myAuth3')")
So do you know if is there a way to load my permissions ('myAuth1', 'myAuth2', 'myAuth3') from an external method (maybe it load that from DB)?
Something like this:
Have a good day