authentication / state beans
"Davies, Grant M." <[email protected]>
| Newsgroups | gmane.comp.java.openamf.user |
|---|---|
| Message-ID | <BEF55D977D60F94B9768E5C2AA398546133824E5@gaatlitexch09s.nscorp.ad.nscorp.com> |
I have seen some references to an Authentication and found this documentation on the open-AMF state-beans state-bean To use state-bean you must use the "AdvancedGateway". State Beans are used to pass state between Service calls. A state bean is just a simple Java Bean that is stored in the web container's Session or Application for you. All you have to do to use state-beans is create a simple java bean, make it the last parameter of your method, and then configure the openamf-config.xml file. I see the authentication class has no methods or properties, if I wanted to utilize a state bean for authentication purposes would I : 1) create a credentials object with a Boolean loggedIn = flase 2) Log the user in on the server and get the credentials object from the session and set loggedIn = true 3) Make sure I pass this loggedIn object in every service call (or is this just stored in the session until I need it again ?) This issue I have is I want to authenticate a user and then know if the user is authenticated from within a EJB Session bean. Grant ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf