dimanche 22 novembre 2015

Intercepting Filter pattern

I want to implement intercepting filter pattern in JAVA to find if the password entered is as per the requirement. For this I can create a filter class. But how do I handle the situation when password is incorrect, should I pass it to the target class or return false from filter class. I was following some online tutorial to authenticate request but in that they have not mentioned what to do when authentication fails. Also I don't think my understanding of target class is correct, for me the target class is something which is called after all the filters show that the request is authenticated.

Thanks

Aucun commentaire:

Enregistrer un commentaire