• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Security Issue

 
Ankit Mishra
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this in my Deployment Descriptor:




Admin is a user who can get the constraint request. No one else apart from admin can do GET OR POST on the said url.

Now, my question is:

Can admin also do other http methods with above said constrained http methods if they are there in servlet
i.e can admin do PUT also on the said url?
 
priya rishi
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can admin also do other http methods with above said constrained http methods if they are there in servlet
i.e can admin do PUT also on the said url?


Yes.
As per your constraint definition, GET and POST methods for this url can be accessed ONLY by the Admin.
But the other methods have no constraint defined, so they can be accessed by any role.




 
Ankit Mishra
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Priya for your reply. I finally got this concept
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic