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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanabort()protected voidfinal booleancommit()protected booleangetBoolOption(String optionName, boolean defaultValue) protected intgetIntOption(String optionName, int defaultValue) protected Stringprotected abstract StringgetName()protected StringgetStringOption(String optionName, String defaultValue) final voidinitialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) protected booleanprotected booleanfinal booleanlogin()final booleanlogout()protected booleanonAbort()protected booleanonCommit()protected voidprotected abstract booleanonLogin()protected booleanonLogout()
-
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:
initializein interfaceLoginModule
-
login
- Specified by:
loginin interfaceLoginModule- Throws:
LoginException
-
commit
- Specified by:
commitin interfaceLoginModule- Throws:
LoginException
-
abort
public final boolean abort()- Specified by:
abortin interfaceLoginModule
-
logout
- Specified by:
logoutin 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
-