Package com.sun.enterprise.admin.util
Class AdminLoginModule
- java.lang.Object
-
- com.sun.enterprise.admin.util.AdminLoginModule
-
- All Implemented Interfaces:
LoginModule
@Service @PerLookup public class AdminLoginModule extends Object implements LoginModule
Handles the non-username/password ways an admin user can authenticate.As specified by the LoginModule contract, the login method creates lists of principals or credentials to be added to the Subject during commit. Only if commit is invoked does the module actually add them to the Subject.
- Author:
- tjquinn
-
-
Constructor Summary
Constructors Constructor Description AdminLoginModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanabort()booleancommit()voidinitialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)booleanlogin()booleanlogout()
-
-
-
Method Detail
-
initialize
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
- Specified by:
initializein interfaceLoginModule
-
login
public boolean login() throws LoginException- Specified by:
loginin interfaceLoginModule- Throws:
LoginException
-
commit
public boolean commit() throws LoginException- Specified by:
commitin interfaceLoginModule- Throws:
LoginException
-
abort
public boolean abort() throws LoginException- Specified by:
abortin interfaceLoginModule- Throws:
LoginException
-
logout
public boolean logout() throws LoginException- Specified by:
logoutin interfaceLoginModule- Throws:
LoginException
-
-