Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

role name in servelt element

 
Shreyas Reddy
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am confused about the two diff role-names int he servlet element.Can someone please explain. Also what is role-link? I looked at the Servelt 2.3 specifications already.
Thx
-----------------------------------------------
<servlet>
<servlet-name>Test</servlet-name>
<servket-class>examples.testServlet</servlet-class>
<run-as>
<role-name> ROLE-ONE</role-name>
</run-as>
<security-role-ref>
<role-name>ROLE-TWO</role-name>
<role-link>WHAT???ANOTHER-ROLE-NAME</role-link>
</security-role-ref>
</servlet>
 
chi Lin
Ranch Hand
Posts: 348
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shreyas,
<security-role-ref> provides a mapping between hard-coded role-name in servlet code and the actual role values that are used in the deployment environment.
<role-name> <- hard-coded inside servlet
<role-link> <- role name defined in servlet container.
If possible, please refer to p150 of mannning boook (SCWCD exam study kit listing 9.3) for more detailed info.

Originally posted by Shreyas Reddy:
I am confused about the two diff role-names int he servlet element.Can someone please explain. Also what is role-link? I looked at the Servelt 2.3 specifications already.
Thx
-----------------------------------------------
<servlet>
<servlet-name>Test</servlet-name>
<servket-class>examples.testServlet</servlet-class>
<run-as>
<role-name> ROLE-ONE</role-name>
</run-as>
<security-role-ref>
<role-name>ROLE-TWO</role-name>
<role-link>WHAT???ANOTHER-ROLE-NAME</role-link>
</security-role-ref>
</servlet>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic