• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

isUserInRole

 
sudha senthil
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do isUserInrole returns true even when it is not defined as a valid role name in DD?
 
Devaka Cooray
Marshal
Pie
Posts: 4879
402
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sudha senthil wrote:do isUserInrole returns true even when it is not defined as a valid role name in DD?


Well, this is not defined in the Java EE specification. Hence this would gives you a vendor-specific result. If the role is defined in the security-realm, it is accessible to the container in most cases, even though role-mappings are not explicitly mentioned in the descriptor.

Devaka
 
sudha senthil
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a Lot for your reply.So chances are there to return TRUE . Right?
 
Devaka Cooray
Marshal
Pie
Posts: 4879
402
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sudha senthil wrote:Thanks a Lot for your reply.So chances are there to return TRUE . Right?


It possibly return true, if the client is logged to the application as a user, who is 'registered' in the particular role.

Devaka.
 
sudha senthil
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks devaka cooray.I got it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic