-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Rules for Interceptors
PostPosted: Mon Jun 28, 2004 12:48 pm 
Newbie

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.