|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hs.mail.security.login.BasicLoginModule
public abstract class BasicLoginModule
Base class for custom LoginModule.
Field Summary | |
---|---|
protected CallbackHandler |
callbackHandler
A CallbackHandler for communicating with the end user (prompting for usernames and passwords, for example). |
protected boolean |
commitSuccess
The commit status. |
protected boolean |
debug
|
protected Class |
encoder
Class for password encoder |
protected Map |
options
Options specified in the login Configuration for this particular LoginModule. |
protected Principal[] |
principals
The Principals authenticated. |
protected Map |
sharedState
State shared with other configured LoginModules. |
protected Subject |
subject
The Subject to be authenticated. |
protected boolean |
success
The authentication status. |
Constructor Summary | |
---|---|
protected |
BasicLoginModule()
|
Method Summary | |
---|---|
boolean |
abort()
Standard JAAS override. |
protected boolean |
checkPassword(String encoded,
char[] plain)
|
boolean |
commit()
Overriding to complete login process. |
protected Callback[] |
getDefaultCallbacks()
|
protected String |
getOption(String name,
String defaultValue)
|
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options)
Overriding to allow for proper initialization. |
boolean |
login()
Overriding to allow for certificate-based login. |
boolean |
logout()
Standard JAAS override. |
protected abstract Principal[] |
validate(Callback[] callbacks)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean success
protected boolean commitSuccess
protected Subject subject
protected Principal[] principals
protected CallbackHandler callbackHandler
protected Map sharedState
protected Map options
protected Class encoder
protected boolean debug
Constructor Detail |
---|
protected BasicLoginModule()
Method Detail |
---|
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize
in interface LoginModule
public boolean login() throws LoginException
login
in interface LoginModule
LoginException
public boolean logout() throws LoginException
logout
in interface LoginModule
LoginException
public boolean abort() throws LoginException
abort
in interface LoginModule
LoginException
public boolean commit() throws LoginException
commit
in interface LoginModule
LoginException
protected boolean checkPassword(String encoded, char[] plain) throws LoginException
LoginException
protected abstract Principal[] validate(Callback[] callbacks) throws LoginException
LoginException
protected Callback[] getDefaultCallbacks()
protected String getOption(String name, String defaultValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |