Joined: Mon Jun 28, 2004 12:28 pm Posts: 3 Location: Virginia
|
I have written an Interceptor to validate that records have not been tampered with. It is loosely based off the example "Security: adding message digests via interceptors". Mine is slightly different in that it also digitally signs the SHA1. In the onLoad it performs another SHA1 and then validates that the SHA1 and digital signature are correct.
The question is: If a record is found to be invalid (or tampered with) I would like to just remove it from the results returned. I have not been able to figure out how to do this. In the meantime I just null out each one of the state entries.
I tried just generating an exception but then it doesn't return any of the results.
I am using Hibernate 2.1.4 , HSQL 1.7.1
Any ideas would be greatly appreciated.
Thanks.
- James
|
|