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 LoginModule
LoginException
public boolean commit() throws LoginException
commit
in interface LoginModule
LoginException
public PluginPropertyService getPluginPropertyService()
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize
in interface LoginModule
public boolean login() throws LoginException
login
in interface LoginModule
LoginException
public boolean logout() throws LoginException
logout
in interface LoginModule
LoginException
Copyright © 2019 Communote team. All rights reserved.