|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ApplicationManager
This is the central component of Cocoon Authentication. It controls all applications defined in the current Cocoon instance and provides ways to authenticate a user.
Field Summary | |
---|---|
static String |
APPLICATION
The string used to store the application in the object model. |
static String |
APPLICATION_DATA
The string used to store the application data in the object model . |
static String |
LOGIN_CONTEXT_PARAMETERS_KEY
The key for parameters in the login context. |
static String |
LOGOUT_CONTEXT_MODE_KEY
The key for the logout method in the logout context. |
static String |
LOGOUT_CONTEXT_PARAMETERS_KEY
The key for parameters in the logout context. |
static String |
LOGOUT_MODE_KEEP_SESSION
logout mode: don't terminate the session. |
static String |
LOGOUT_MODE_TERMINATE_SESSION_IF_UNUSED
logout mode: terminate session if the user is not logged into any application anymore (default). |
static String |
USER
The string used to store the user in the object model and the prefix for the session. |
Method Summary | |
---|---|
boolean |
isLoggedIn(String appName)
Test, if the current user is already logged into the application. |
User |
login(String appName,
Map loginContext)
Log the user in to the application. |
void |
logout(String appName,
Map logoutContext)
Logout the user from an application. |
Field Detail |
---|
static final String USER
static final String APPLICATION
static final String APPLICATION_DATA
static final String LOGIN_CONTEXT_PARAMETERS_KEY
static final String LOGOUT_CONTEXT_PARAMETERS_KEY
static final String LOGOUT_CONTEXT_MODE_KEY
static final String LOGOUT_MODE_TERMINATE_SESSION_IF_UNUSED
static final String LOGOUT_MODE_KEEP_SESSION
Method Detail |
---|
boolean isLoggedIn(String appName)
appName
- The name of the application.
User login(String appName, Map loginContext) throws Exception
SecurityHandler.login(Map)
and on successful login to
Application.userDidLogin(User, Map)
.
appName
- The name of the application.loginContext
- The context for the login operation.
Exception
- If anything goes wrong.void logout(String appName, Map logoutContext)
Application.userWillLogout(User, Map)
,
and eventually to SecurityHandler.logout(Map, User)
.
appName
- The name of the application.logoutContext
- The context for the logout operation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |