Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / January 2006

Tip: Looking for answers? Try searching our database.

Security for beans in web application

Thread view: 
ittay.dror@gmail.com - 18 Jan 2006 14:01 GMT
Hi,

I have POJOs acting as API to the application. How can I implement
authorization? I tried
  Subject s = Subject.getSubject(AccessController.getContext());
  Set<Principal> ps = s.getPrincipals();
  // now i can authorize based on name or whatever

but i get a subject only if the method was called with doAs. But it
seems to me that if this will be my requirement, then just anybody will
call the methods with doAs, passing whatever principal they want.

In short, I'm a newbie in this. I tried to read some material, but i
confess this is very confusing to me.

So how do i get the username to authorize in a secure way?

Thank you,
Ittay
IchBin - 18 Jan 2006 16:43 GMT
> Hi,
>
[quoted text clipped - 15 lines]
> Thank you,
> Ittay

Take look at
http://wiki.apache.org/directory/AuthXHome
Signature


Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.