Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Programatic Security?

 
Ranch Hand
Posts: 10192
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

Will there be questions on programatic security on the exam??
 
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For programatic security you should know everything about
request.isUserInRole(String role)
 
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes..
in a nutshell..

request.isUserInRole("manager");

<security-role-ref>
<role-link>manager</role-link>
<role-name>admin</role-name>
</security-role-ref>

the whold thing in programatic security is that we can use to authorize the user on some specific portions of a method, and also we can use it to map the hard coded roles in the servlet, to those that actually mean something to us..! in other words, "manager" was the role that made sense to some developer who wrot the security code, but when we inherited his code, our company has "admin" role which is equivalent to the role called "manager"
this helps us to avoid going around all the servlets and change the "manager" to admin"

hth
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic