public class ClientLoginModule extends Object implements LoginModule
This login module doesn't make any authentication - it is called only after the authentication is successfully done by a previous login module.
The static method of this class can also be used to manage the current login stack.
| Modifier and Type | Field and Description |
|---|---|
protected static LoginStack |
globalInstance
The global login stack
|
protected static ThreadLocal<LoginStack> |
threadInstance
The thread local login stack - for per thread logins
|
| Constructor and Description |
|---|
ClientLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort() |
static void |
clearThreadLocalLogin() |
boolean |
commit() |
static LoginStack.Entry |
getCurrentLogin() |
static NuxeoPrincipal |
getCurrentPrincipal()
Returns the current logged
NuxeoPrincipal from the login stack |
static LoginStack |
getThreadLocalLogin() |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map sharedState,
Map options)
Initialize this LoginModule.
|
boolean |
login() |
boolean |
logout() |
protected static final LoginStack globalInstance
protected static final ThreadLocal<LoginStack> threadInstance
public ClientLoginModule()
public static void clearThreadLocalLogin()
public static LoginStack getThreadLocalLogin()
public static LoginStack.Entry getCurrentLogin()
public static NuxeoPrincipal getCurrentPrincipal()
NuxeoPrincipal from the login stackpublic void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
initialize in interface LoginModulepublic boolean login() throws LoginException
login in interface LoginModuleLoginExceptionpublic boolean commit() throws LoginException
commit in interface LoginModuleLoginExceptionpublic boolean abort() throws LoginException
abort in interface LoginModuleLoginExceptionpublic boolean logout() throws LoginException
logout in interface LoginModuleLoginExceptionCopyright © 2019 Nuxeo. All rights reserved.