• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

JAAS and EJB Server authorization

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
basically what i want to know is from where does the method of EJBContext, getCallerPrincipal() return the principal from? I am using JAAS for WEB Server authentication. After authentication, i populate the Subject with more than 1 principals, out of which some are the roles the logged in user is allowed to play. In this case what would the getCallerPrincipal() method return me ?
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
getCallerPrincipal() will return you the caller that invoked the EJBObject.(As defined by <security-role-ref> tags in your deployment descriptor.
 
huzefa kalyaniwala
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Thanx buddy ...
But can U just give some information about the tags U mention ...
And also, currently I have some proto code, which passes the principal to the EJB Container while getting the Initial Context ... and i presume .. this is what the Container returns me thru the EntityContext or SessionContext .. am I right?
 
Eat that pie! EAT IT! Now read this tiny ad. READ IT!
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic