Jan 28th, 2011, 09:39 AM
Which Voter Failed
Is there a way to return which voter or voters failed?
reason I would like to do this, is to return custom failed page to the user.
Example, maybe they failed because they don't exist in our database.
Or maybe they failed because they don't exist in Enterprise Database.
Instead of just saying.. Access denied!!
Id like to say.. Access denied please verify with Enterprise DBA
Access Denied please request an account at ...
depending on which voter failed.
Jan 28th, 2011, 11:44 PM
You will probably want to implement a custom AccessDecisionManager if you want to know which voter was accepted for a particular authorization decision.
Peter Mularien | Blog
Author, Spring Security 3 (Book) - Packt Publishing, Available in print and eBook form
SCJP 5, Oracle DBA
Any postings are my own opinion, and should not be attributed to my employer or clients.