• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question about security role.  RSS feed

 
rui lin
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I've defined a security role name 'Employees' in the descriptor file.
like

This means only the client who is an employee can access the methods,i think.
My question is: in the client codes, how can i claim myself to be an employee. would you give me some example codes?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The client authenticates when she acquires the InitialContext reference to the application server's JNDI tree. Based on the principal identified during that authentication, the EJB container deduces whether the caller is in the appropriate role or not.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!