File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes Web login page versus Swing Login UI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "Web login page versus Swing Login UI" Watch "Web login page versus Swing Login UI" New topic
Author

Web login page versus Swing Login UI

Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

So with Web and J2EE we have this great integration with a FORM simple web page and passing the Principal to the Servlets and on to Services. This is great, easy to do.

But what if you have a Swing application and you have a Swing login page to login, How do you pass the Principal down to say EBJ3 Session Beans that are declared that the called needs to be in a role. I don't seem to find any nice integration like you have in Web UIs.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Set Cruz
Greenhorn

Joined: Jan 31, 2008
Posts: 26
Mark, I would declare my remote to take a Principal argument, and intercept the call to authenticate/authorize.


SCJP, Oracle PL/SQL Developer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web login page versus Swing Login UI