public class CommunoteJaasLoginModule extends Object implements LoginModule
| Modifier and Type | Field and Description |
|---|---|
static String |
LOCAL_COMMUNOTE_USER
Name of the user if its local / internal
|
static String |
ROLE_USERS
Constant for the name of the role users
|
| Constructor and Description |
|---|
CommunoteJaasLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort() |
boolean |
commit() |
PluginPropertyService |
getPluginPropertyService() |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
static boolean |
isAddressLocal(String remoteAddress)
checks whether client address is local
|
boolean |
login() |
boolean |
logout() |
public static final String ROLE_USERS
public static final String LOCAL_COMMUNOTE_USER
public static boolean isAddressLocal(String remoteAddress)
remoteAddress - remote addresspublic boolean abort()
throws LoginException
abort in interface LoginModuleLoginExceptionpublic boolean commit()
throws LoginException
commit in interface LoginModuleLoginExceptionpublic PluginPropertyService getPluginPropertyService()
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize in interface LoginModulepublic boolean login()
throws LoginException
login in interface LoginModuleLoginExceptionpublic boolean logout()
throws LoginException
logout in interface LoginModuleLoginExceptionCopyright © 2019 Communote team. All rights reserved.