declarative security management Vs programmatic security management
posted 13 years ago
I have some questions related with security management, 1. If i use declarative security management, is that meaning that I don't have to do any login related model anywhere. 2. In petstore, It does not use any of the three login mechanisms specified by the J2EE platform (HTTP basic authentication, SSL authentication, or form-based login). But why? is it only because they want to decouple USER module and Customer module? 3. In petstore, there is a stateful session bean,ShoppingControllerEJB, which is used to cache the current customer, shoppingcart, etc.. My question is, when are those stuff set in the ShoppingControllerEJB, is it set when login? if so, if petstore also uses declarative security management, how could those info(for ext., customer) be set in the ShoppingControllerEJB? I know those questions may be stupid or confusing, but I am really feeling uncertain about those issues. Thanks for your reply!