public abstract class ClusterLoginModule extends Object implements LoginModule
| Modifier and Type | Field and Description |
|---|---|
protected CallbackHandler |
callbackHandler |
protected boolean |
commitSucceeded |
protected String |
endpoint |
protected com.hazelcast.logging.ILogger |
logger |
protected boolean |
loginSucceeded |
static String |
OPTION_SKIP_ENDPOINT |
static String |
OPTION_SKIP_IDENTITY |
static String |
OPTION_SKIP_ROLE |
protected Map<String,?> |
options |
protected static String |
SHARED_STATE_IDENTITY |
protected Map |
sharedState |
protected Subject |
subject |
| Constructor and Description |
|---|
ClusterLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort() |
protected void |
addRole(String roleName) |
boolean |
commit() |
protected boolean |
getBoolOption(String optionName,
boolean defaultValue) |
protected int |
getIntOption(String optionName,
int defaultValue) |
protected String |
getLastIdentity() |
protected abstract String |
getName() |
protected String |
getStringOption(String optionName,
String defaultValue) |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
protected boolean |
isSkipIdentity() |
protected boolean |
isSkipRole() |
boolean |
login() |
boolean |
logout() |
protected boolean |
onAbort() |
protected boolean |
onCommit() |
protected void |
onInitialize() |
protected abstract boolean |
onLogin() |
protected boolean |
onLogout() |
public static final String OPTION_SKIP_IDENTITY
public static final String OPTION_SKIP_ROLE
public static final String OPTION_SKIP_ENDPOINT
protected static final String SHARED_STATE_IDENTITY
protected final com.hazelcast.logging.ILogger logger
protected String endpoint
protected Subject subject
protected Map sharedState
protected boolean loginSucceeded
protected boolean commitSucceeded
protected CallbackHandler callbackHandler
public final void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize in interface LoginModulepublic final boolean login()
throws LoginException
login in interface LoginModuleLoginExceptionpublic final boolean commit()
throws LoginException
commit in interface LoginModuleLoginExceptionpublic final boolean abort()
throws LoginException
abort in interface LoginModuleLoginExceptionpublic final boolean logout()
throws LoginException
logout in interface LoginModuleLoginExceptionprotected abstract boolean onLogin()
throws LoginException
LoginExceptionprotected abstract String getName()
protected void onInitialize()
protected boolean onCommit()
throws LoginException
LoginExceptionprotected boolean onAbort()
throws LoginException
LoginExceptionprotected boolean onLogout()
throws LoginException
LoginExceptionprotected void addRole(String roleName)
protected boolean getBoolOption(String optionName, boolean defaultValue)
protected int getIntOption(String optionName, int defaultValue)
protected boolean isSkipRole()
protected boolean isSkipIdentity()
protected String getLastIdentity()
Copyright © 2022 Hazelcast, Inc.. All rights reserved.