• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Security Issue

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Priya for your reply. I finally got this concept
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic