|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.auth.AbstractLoginModule
public abstract class AbstractLoginModule
Abstract JAAS login module for custom implementations.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
AbstractLoginModule()
|
|
| Method Summary | |
|---|---|
boolean |
abort()
Default implementation. |
boolean |
commit()
Default implementation. |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map sharedState,
Map options)
Default implementation. |
boolean |
logout()
Default implementation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.security.auth.spi.LoginModule |
|---|
login |
| Field Detail |
|---|
protected static final Logger logger
protected Subject subject
initialize(javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, java.util.Map, java.util.Map) method.
protected CallbackHandler callbackHandler
initialize(javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, java.util.Map, java.util.Map) method.
protected Map sharedState
initialize(javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, java.util.Map, java.util.Map) 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.util.Map) method.
protected Collection<String> role
protected Principal principal
| Constructor Detail |
|---|
public AbstractLoginModule()
| Method Detail |
|---|
public void initialize(Subject subject,
CallbackHandler callbackHandler,
Map sharedState,
Map options)
initialize in interface LoginModuleLoginModule.initialize(javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, java.util.Map, java.util.Map) public boolean commit()
commit in interface LoginModuleLoginModule.commit()public boolean abort()
abort in interface LoginModuleLoginModule.abort()public boolean logout()
logout in interface LoginModuleLoginModule.logout()
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||