This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes DD entries for authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "DD entries for authentication" Watch "DD entries for authentication" New topic
Author

DD entries for authentication

Amruth Puppala
Ranch Hand

Joined: Jul 14, 2008
Posts: 295
As per my understanding ony BASIC aunthentication should have realm-name tag

see the following entries in web.xml . are these correct or not.


<login-config>
<auth-method>BASIC</auth-method>
<realm-name>User Auth</realm-name>
</login-config>


<login-config>
<auth-method>DIGEST</auth-method>
<realm-name>User Auth</realm-name>
</login-config>

<login-config>
<auth-method>CLIENT-CERT</auth-method>
<realm-name>User Auth</realm-name>
</login-config>

<login-config>
<auth-method>FORM</auth-method>
<realm-name>User Auth</realm-name>
<form-login-config>
<form-login-page>login.jsp</form-login-page>
<form-error-page>error.jsp</form-error-page>
</form-login-config>
</login-config>


SCJP 5 |SCWCD 5| Started thinking about Web Services ?
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
<realm-name> is optional. If it's present then it's displayed in the dialog box asking for the credentials.
Amruth Puppala
Ranch Hand

Joined: Jul 14, 2008
Posts: 295
Originally posted by Ulf Dittmer:
<realm-name> is optional. If it's present then it's displayed in the dialog box asking for the credentials.



So can we use <realm-name> in any of authentication type?
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
Yes. Of course, if there's no dialog box (like for form and client-cert auth), then it doesn't get displayed.
Amruth Puppala
Ranch Hand

Joined: Jul 14, 2008
Posts: 295
Thanks lot
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: DD entries for authentication
 
It's not a secret anymore!