Package com.hazelcast.security
Class ClusterLoginModule
java.lang.Object
com.hazelcast.security.ClusterLoginModule
- All Implemented Interfaces:
LoginModule
- Direct Known Subclasses:
BasicLdapLoginModule
,DefaultLoginModule
,GssApiLoginModule
,SimplePropertiesLoginModule
,X509CertificateLoginModule
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
abort()
protected void
final boolean
commit()
protected boolean
getBoolOption
(String optionName, boolean defaultValue) protected int
getIntOption
(String optionName, int defaultValue) protected String
protected abstract String
getName()
protected String
getStringOption
(String optionName, String defaultValue) final void
initialize
(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) protected boolean
protected boolean
final boolean
login()
final boolean
logout()
protected boolean
onAbort()
protected boolean
onCommit()
protected void
protected abstract boolean
onLogin()
protected boolean
onLogout()
-
Field Details
-
OPTION_SKIP_IDENTITY
- See Also:
-
OPTION_SKIP_ROLE
- See Also:
-
OPTION_SKIP_ENDPOINT
- See Also:
-
SHARED_STATE_IDENTITY
- See Also:
-
logger
protected final com.hazelcast.logging.ILogger logger -
endpoint
-
subject
-
options
-
loginSucceeded
protected boolean loginSucceeded -
commitSucceeded
protected boolean commitSucceeded -
callbackHandler
-
-
Constructor Details
-
ClusterLoginModule
public ClusterLoginModule()
-
-
Method Details
-
initialize
public final void initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) - Specified by:
initialize
in interfaceLoginModule
-
login
- Specified by:
login
in interfaceLoginModule
- Throws:
LoginException
-
commit
- Specified by:
commit
in interfaceLoginModule
- Throws:
LoginException
-
abort
public final boolean abort()- Specified by:
abort
in interfaceLoginModule
-
logout
- Specified by:
logout
in interfaceLoginModule
- Throws:
LoginException
-
onLogin
- Throws:
LoginException
-
getName
-
onInitialize
protected void onInitialize() -
onCommit
protected boolean onCommit() -
onAbort
protected boolean onAbort() -
onLogout
- Throws:
LoginException
-
addRole
-
getStringOption
-
getBoolOption
-
getIntOption
-
isSkipRole
protected boolean isSkipRole() -
isSkipIdentity
protected boolean isSkipIdentity() -
getLastIdentity
-