|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.basesecurity.AuthHelper
public class AuthHelper
Description:
| Field Summary | |
|---|---|
static int |
LOGIN_NOTAVAILABLE
|
static int |
LOGIN_OK
|
static java.lang.String |
LOGOUT_PAGE
LOGOUT_PAGE |
| Constructor Summary | |
|---|---|
AuthHelper()
|
|
| Method Summary | |
|---|---|
static Identity |
createAndPersistIdentityAndUser(java.lang.String loginName,
java.lang.String pwd,
User newUser)
Persists the given user and creates an identity for it |
static Identity |
createAndPersistIdentityAndUserWithUserGroup(java.lang.String loginName,
java.lang.String pwd,
User newUser)
Persists the given user, creates an identity for it and adds the user to the users system group |
static int |
doAnonymousLogin(UserRequest ureq,
java.util.Locale locale)
Logs in as anonymous user using the given language key. |
static int |
doLogin(Identity identity,
java.lang.String authProvider,
UserRequest ureq)
Used by DMZDispatcher to do regular logins and by ShibbolethDispatcher which is somewhat special because logins are handled asynchronuous -> therefore a dedicated dispatcher is needed which also has to have access to the doLogin() method. |
static void |
doLogout(UserRequest ureq)
This is a convenience method to log out. |
static int |
getMaxSessions()
|
static boolean |
isLoginBlocked()
|
static boolean |
isRejectDMZRequests()
|
static void |
setLoginBlocked(boolean newLoginBlocked)
|
static void |
setMaxSessions(int maxSession)
|
static void |
setRejectDMZRequests(boolean newRejectDMZRequests)
|
static void |
setSessionInfoFor(Identity identity,
java.lang.String authProvider,
UserRequest ureq)
Build session info |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String LOGOUT_PAGE
LOGOUT_PAGE
public static final int LOGIN_OK
public static final int LOGIN_NOTAVAILABLE
| Constructor Detail |
|---|
public AuthHelper()
| Method Detail |
|---|
public static int doLogin(Identity identity,
java.lang.String authProvider,
UserRequest ureq)
identity - authProvider - ureq -
public static int doAnonymousLogin(UserRequest ureq,
java.util.Locale locale)
ureq - The user requestlang - The language of the anonymous user or null if system default should be used
public static Identity createAndPersistIdentityAndUser(java.lang.String loginName,
java.lang.String pwd,
User newUser)
loginName - pwd - null: no OLAT authentication is generated. If not null, the password will be
encrypted and and an OLAT authentication is generated.newUser - unpersisted user
public static Identity createAndPersistIdentityAndUserWithUserGroup(java.lang.String loginName,
java.lang.String pwd,
User newUser)
loginName - pwd - null: no OLAT authentication is generated. If not null, the password will be
encrypted and and an OLAT authentication is generated.newUser - unpersisted users
public static void doLogout(UserRequest ureq)
ureq -
public static void setSessionInfoFor(Identity identity,
java.lang.String authProvider,
UserRequest ureq)
identity - authProvider - ureq - public static void setLoginBlocked(boolean newLoginBlocked)
public static boolean isLoginBlocked()
public static void setRejectDMZRequests(boolean newRejectDMZRequests)
public static boolean isRejectDMZRequests()
public static void setMaxSessions(int maxSession)
public static int getMaxSessions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||