• 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
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

security

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i was just going thro the servlet specification on security and found this line where it says
"The security model does not apply when a servlet uses the RequestDispatcher to invoke a static resource or servlet using a forward or an include "

Will this rule apply when u fwd or include to a JSP(even jsp is a servlet rt) ???
 
Sharath
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"A security constraint that does not contain a user-data-constraint shall combine with other userdata-constraints to cause the unprotected
connection type to be unprotected only."


can anyone explain this ? i didnt get it.
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Sharath KM", I hate being a picky jerk, but your display name does not match the Javaranch naming policy. Basically, if you use initials they must come as the first part of the name. "KM Sharath" would work. I'd hate for one our moderators to see your name when they're grumpy and decide to lock your account.

Also, your best bet is to create a new thread for each new question you have. It gets pretty confusing otherwise.

Alright, to your first question...
The security model only applies to requests that come from a client, usually being someone's browser. After I send a request to the server, the server might create its own requests internally, forwarding accross servlets, performing includes, all kinds of junk. For those requests that the server cooks up, the security model won't care. It's like the security model says, "You want resource X? Who's this for?" and the server says, "It's for me." It's kind of like a college kid buying beer for his underage buddies... except that what the server does is legal.

Second question...
If two security-constraints overlap (by url-pattern), and one of the security-constraints does not specify a user-data-constraint, then there will be no transport-guarantee applied to the resources effected by the url overlap. Note that user-data-constraint usually just forces the client to use https requests, so having no user-data-constraint simply means that the user doesn't have to use https (uses SSL), they can just use regular ol' http requests.
 
reply
    Bookmark Topic Watch Topic
  • New Topic