File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes security-constraint with no login-config element Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "security-constraint with no login-config element" Watch "security-constraint with no login-config element" New topic
Author

security-constraint with no login-config element

M Conlin
Greenhorn

Joined: Aug 01, 2005
Posts: 15

My reading says that if <login-config> element is present in the DD
then a user must be authenticated before accessing <security-constraint> elements.

What happens if you have constrained resources via the <secuirity-constraint> but no <login-config> element is present in the DD?
Is there a default login-config OR since no authentication method is given, nobody can access the constrained resouces?
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

Isn't the best solution to find out is try it out yourself??


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
M Conlin
Greenhorn

Joined: Aug 01, 2005
Posts: 15
Ankit Garg wrote:Isn't the best solution to find out is try it out yourself??


Yes, but I am currently studying without access to my dev machine.
I was hoping someone on here might simply know.

Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

You will get an error from server. You will not be able to get secured collection.


SCJP6, SCWCD5, OCE:EJBD6.
BLOG: http://leakfromjavaheap.blogspot.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: security-constraint with no login-config element
 
Similar Threads
Login-config Question
Authorisation related
declarative authentication and authorization
Security Problem with my app
Basic authentication using custom Login Module in WAS 6.1