@NotThreadSafe public final class AlluxioLoginModule extends Object implements LoginModule
Constructor and Description |
---|
AlluxioLoginModule()
Constructs a new
AlluxioLoginModule . |
Modifier and Type | Method and Description |
---|---|
boolean |
abort()
Aborts the authentication (second phase).
|
boolean |
commit()
Commits the authentication (second phase).
|
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
boolean |
login()
Authenticates the user (first phase).
|
boolean |
logout()
Logs out the user.
|
public AlluxioLoginModule()
AlluxioLoginModule
.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
- when the login failspublic boolean abort() throws LoginException
abort
in interface LoginModule
LoginException
- when the abortion failspublic boolean commit() throws LoginException
commit
in interface LoginModule
LoginException
- if the user extending a specific Principal is not foundpublic boolean logout() throws LoginException
logout
in interface LoginModule
LoginException
- if logout failsCopyright © 2023. All Rights Reserved.