public abstract class AbstractLoginModule extends Object implements LoginModule
© Copyright 2007 Sans Pareil Technologies, Inc.
| Modifier and Type | Field and Description |
|---|---|
protected CallbackHandler |
callbackHandler
CallbackHandler for communicating with the end user.
|
protected static Logger |
logger
The logger to use to log errors/messages to.
|
protected Map |
options
Options specified in the login Configuration for this particular
LoginModule. |
protected Principal |
principal
A principal that represents the user that is logged in.
|
protected Collection<String> |
role
A collection of roles assigned to the principal.
|
protected Map |
sharedState
State shared with other configured LoginModules.
|
protected Subject |
subject
The Subject to be authenticated.
|
| Constructor and Description |
|---|
AbstractLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort()
Default implementation.
|
boolean |
commit()
Default implementation.
|
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options)
Default implementation.
|
boolean |
logout()
Default implementation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitloginprotected static final Logger logger
protected Subject subject
initialize(javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, java.util.Map<java.lang.String, ?>, java.util.Map<java.lang.String, ?>) method.protected CallbackHandler callbackHandler
initialize(javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, java.util.Map<java.lang.String, ?>, java.util.Map<java.lang.String, ?>) method.protected Map sharedState
initialize(javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, java.util.Map<java.lang.String, ?>, java.util.Map<java.lang.String, ?>) method.protected Map options
LoginModule. This field is set
in the initialize(javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, java.util.Map<java.lang.String, ?>, java.util.Map<java.lang.String, ?>) method.protected Collection<String> role
protected Principal principal
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
public boolean commit()
commit in interface LoginModuleLoginModule.commit()public boolean abort()
abort in interface LoginModuleLoginModule.abort()public boolean logout()
logout in interface LoginModuleLoginModule.logout()