Forums Register Login

JAAS and EJB Server authorization

+Pie Number of slices to send: Send
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 ?
+Pie Number of slices to send: Send
getCallerPrincipal() will return you the caller that invoked the EJBObject.(As defined by <security-role-ref> tags in your deployment descriptor.
+Pie Number of slices to send: Send
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?
This tiny ad is guaranteed to be gluten free.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 875 times.
Similar Threads
JAAS with stateless beans
FORM and BASIC authentication in the same web app
Authentication with swing client
Security Question about Handle class
How to get login name ???
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:10:24.