• 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 tags

 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I used to get very confused about remmebring security tags as they all sound similar

I have tried to write them in a way to memorize easily , hope would be useful for any1.

Security Tags :

1)<login-config>Under <web-app>
<auth-method>
<form-login-config>
<form-login-page>
<form-error-page>
</form-error-page>
</form-login-page>
</form-login-config>
</auth-method>
</login-config>

2)<tomcat-users>In tomcat-users.xml
<role rolename/><user username password/ >
</tomcat-users>

3)<security-role>Under <web-app>
<role-name>
</role-name>
</security-role>

4)<security-constraint>Under <web-app>
<web-resource-collection>
<web-resource-name></web-resource-name>
<url-pattern></url-pattern>
<http-method></http-method>
</web-resource-collection>

<auth-constraint>
<role-name>
</role-name>
</auth-constraint>

<user-data-constraint>
<transport-gaurantee>
</transport-gaurantee>
</user-data-constraint>
<security-constraint>

5)<security-role-ref>Under <servlet>
<role-link></role-link>
<role-name></role-name>
</security-role-ref>

Thanks
Vishal Chugh
 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks, its very helpful!!
 
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can someone throw some light on how much important is to remember the structure of security tags for the exam?
 
Ranch Hand
Posts: 124
Eclipse IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its really really very Important to know all your security as well as all other Servlet,Jsp and Jstl tags thoroghly...Many questions will be based on their structures and these questions , as it is evident are really simple ones not confusing..So put on your Learning Hats ..
 
Do you want ants? Because that's how you get ants. And a tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic