|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.keel.services.authentication.config.ConfigLoginModule
ConfigLoginModule is a LoginModule that authenticates a given username/password credential against a configuration file.
LoginModule| Field Summary | |
(package private) javax.security.auth.callback.CallbackHandler |
callbackHandler |
(package private) Configuration |
conf |
(package private) boolean |
debug |
(package private) java.util.Map |
options |
(package private) java.lang.String |
passwordSeq |
(package private) java.util.Map |
sharedState |
(package private) javax.security.auth.Subject |
subject |
(package private) boolean |
success |
| Constructor Summary | |
ConfigLoginModule()Creates a login module that can authenticate against configuration. |
|
| Method Summary | |
boolean |
abort()This method is called if the LoginContext's overall authentication failed. |
boolean |
commit()Abstract method to commit the authentication process. |
void |
initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler callbackHandler, java.util.Map sharedState, java.util.Map options)Initialize this LoginModule. |
boolean |
login()Verify the user against the relevant JDBC datasource. |
boolean |
logout()Logout a user. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
javax.security.auth.callback.CallbackHandler callbackHandler
javax.security.auth.Subject subject
java.util.Map sharedState
java.util.Map options
Configuration conf
boolean success
boolean debug
java.lang.String passwordSeq
| Constructor Detail |
public ConfigLoginModule()
Creates a login module that can authenticate against configuration.
| Method Detail |
public void initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.util.Map sharedState,
java.util.Map options)
LoginModule.
initialize in interface javax.security.auth.spi.LoginModulesubject - the Subject to be authenticated.
callbackHandler - a CallbackHandler for communicating with the end user (prompting for usernames and passwords, for example).
sharedState - shared LoginModule state.
options - options specified in the login Configuration for this particular LoginModule.
public boolean login()
throws javax.security.auth.login.LoginException
Verify the user against the relevant JDBC datasource.
login in interface javax.security.auth.spi.LoginModuleLoginModule should not be ignored.FailedLoginException - if the authentication fails.
javax.security.auth.login.LoginException - if this LoginModule is unable to perform the authentication.
public boolean commit()
throws javax.security.auth.login.LoginException
This method is called if the LoginContext's overall authentication succeeded (the relevant REQUIRED, REQUISITE, SUFFICIENT and OPTIONAL LoginModules succeeded).
If this LoginModule's own authentication attempt succeeded (checked by retrieving the private state saved by the login method), then this method associates a KeelPrincipal with the Subject located in the LoginModule. If this LoginModule's own authentication attempted failed, then this method removes any state that was originally saved.
commit in interface javax.security.auth.spi.LoginModulejavax.security.auth.login.LoginException - if the commit fails
public boolean abort()
throws javax.security.auth.login.LoginException
This method is called if the LoginContext's overall authentication failed. (the relevant REQUIRED, REQUISITE, SUFFICIENT and OPTIONAL LoginModules did not succeed).
If this LoginModule's own authentication attempt succeeded (checked by retrieving the private state saved by the login and commit methods), then this method cleans up any state that was originally saved.
abort in interface javax.security.auth.spi.LoginModulejavax.security.auth.login.LoginException - if the abort fails.
public boolean logout()
throws javax.security.auth.login.LoginException
This method removes the Principals that were added by the commit method.
logout in interface javax.security.auth.spi.LoginModuleLoginModule should not be ignored.javax.security.auth.login.LoginException - if the logout fails.
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||