This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Authentication with swing client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Authentication with swing client" Watch "Authentication with swing client" New topic
Author

Authentication with swing client

Pieter-Jan Malfait
Greenhorn

Joined: Aug 23, 2005
Posts: 26
i've read the following in Designing Enterprise Application with the J2EE Platform, Second Edition from The Javas series in the chapter about authentication and autorization:

"there is no way to authenticate to an EJB Container"

the book further elaborates on authenticating to a web-container.
does this mean that authentication is not possible when using a swing client to connect the j2ee application ? maybe a stupid question, but a very important one for the application i'm developping.
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
What the author might mean is that EJB security is all about authorisation. When a user invokes an EJB method, he or she needs prior authentication.

Authentication is typically done on login, and you could use the Java Authentication and Authorization Service (JAAS) or the Java Secure Socket Extension (JSSE) to authenticate to the server.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Pieter-Jan Malfait
Greenhorn

Joined: Aug 23, 2005
Posts: 26
thank you for the quick response
i'll look into JAAS now, i suppose JBoss fully supports the JAAS Api..
 
Don't get me started about those stupid light bulbs.
 
subject: Authentication with swing client
 
Similar Threads
Java Application question
JAAS and container managed security
Part 2: Security in Web & Swing App
Swing Client
JWS and JAAS