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 boolean
abort()
boolean
commit()
void
initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
boolean
login()
boolean
logout()
-
-
-
Method Detail
-
initialize
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
- Specified by:
initialize
in interfaceLoginModule
-
login
public boolean login() throws LoginException
- Specified by:
login
in interfaceLoginModule
- Throws:
LoginException
-
commit
public boolean commit() throws LoginException
- Specified by:
commit
in interfaceLoginModule
- Throws:
LoginException
-
abort
public boolean abort() throws LoginException
- Specified by:
abort
in interfaceLoginModule
- Throws:
LoginException
-
logout
public boolean logout() throws LoginException
- Specified by:
logout
in interfaceLoginModule
- Throws:
LoginException
-
-