File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Web login page versus Swing Login UI

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

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.



Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Set Cruz

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:
subject: Web login page versus Swing Login UI
It's not a secret anymore!