Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

security-constraint with no login-config element

 
M Conlin
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 9528
32
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Isn't the best solution to find out is try it out yourself??
 
M Conlin
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 808
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will get an error from server. You will not be able to get secured collection.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic