Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Question about security Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Question about security" Watch "Question about security" New topic

Question about security

Carlos Rincon

Joined: Mar 28, 2005
Posts: 22
I want constraint my resource be secure, but I don't want use the tomcat-users.xml, instead I want use a table of a database, how do I do?

Other question, when I constraint a resource (/start) with data constraint CONFIDENTIAL, the web server (in this case Tomcat) turn the url to HTTPS, that is ok, but in this point in forward, all request I do, use HTTPS, what can I do if I ONLY want the initial resource (/start)use the HTTPS, and the others HTTP?

Thanks in advance.
Carlos Rincon

Joined: Mar 28, 2005
Posts: 22
Hello? Or in any other forum is the question appropiate for?
Sergey Tyulkin
Ranch Hand

Joined: May 10, 2005
Posts: 87
1) I'm not very competent in Tomcat configuration, but i think, you must configure a Database Realm for using database insetad of tomcat-users.xml. You can find an example of configuration in \CATALINA_HOME\conf\server.xml

Unfortunately, no thoughts about your second question.
It is sorta covered in the JavaRanch Style Guide.
subject: Question about security