|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hippoecm.hst.security.impl.DefaultLoginModule
public class DefaultLoginModule
DefaultLoginModule
| Field Summary | |
|---|---|
protected AuthenticationProvider |
authProvider
The authentication provider service. |
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
LoginModule debug mode is turned off by default. |
protected Map<String,?> |
options
Options specified in the login Configuration for this particular LoginModule. |
protected Map<String,?> |
sharedState
State shared with other configured LoginModules. |
protected boolean |
storePrivCreds
LoginModule private credentials storing mode is turned off by default. |
protected boolean |
storePubCreds
LoginModule public credentials storing mode is turned off by default. |
protected Subject |
subject
The Subject to be authenticated. |
protected boolean |
success
The authentication status. |
protected User |
user
|
protected String |
username
The user name. |
| Constructor Summary | |
|---|---|
|
DefaultLoginModule()
The default login module constructor. |
protected |
DefaultLoginModule(AuthenticationProvider authProvider)
Create a new login module that uses the given authentication provider |
| Method Summary | |
|---|---|
boolean |
abort()
|
boolean |
commit()
|
protected void |
commitSubject(Subject containerSubject,
User user)
Default setup of the logged on Subject Principals for Tomcat |
protected javax.jcr.Credentials |
createSubjectRepositoryCredentials(String username,
char[] password)
Creates repository credentials for the authenticated user. |
protected AuthenticationProvider |
getAuthenticationProvider()
|
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options)
|
boolean |
login()
|
boolean |
logout()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean debug
LoginModule debug mode is turned off by default.
protected boolean storePubCreds
LoginModule public credentials storing mode is turned off by default.
protected boolean storePrivCreds
LoginModule private credentials storing mode is turned off by default.
protected boolean success
The authentication status.
protected boolean commitSuccess
The commit status.
protected Subject subject
The Subject to be authenticated.
protected CallbackHandler callbackHandler
A CallbackHandler for communicating with the end user (prompting for usernames and passwords, for example).
protected Map<String,?> sharedState
State shared with other configured LoginModules.
protected Map<String,?> options
Options specified in the login Configuration for this particular LoginModule.
protected AuthenticationProvider authProvider
The authentication provider service.
protected String username
The user name.
protected User user
| Constructor Detail |
|---|
public DefaultLoginModule()
The default login module constructor.
protected DefaultLoginModule(AuthenticationProvider authProvider)
authProvider - the authentication provider to use| Method Detail |
|---|
public boolean abort()
throws LoginException
abort in interface LoginModuleLoginExceptionLoginModule.abort()
public boolean commit()
throws LoginException
commit in interface LoginModuleLoginExceptionLoginModule.commit()
public boolean login()
throws LoginException
login in interface LoginModuleLoginExceptionLoginModule.login()
public boolean logout()
throws LoginException
logout in interface LoginModuleLoginExceptionLoginModule.logout()
public void initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options)
initialize in interface LoginModuleLoginModule.initialize(javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, java.util.Map, java.util.Map)
protected void commitSubject(Subject containerSubject,
User user)
subject - user -
protected AuthenticationProvider getAuthenticationProvider()
throws SecurityException
SecurityException
protected javax.jcr.Credentials createSubjectRepositoryCredentials(String username,
char[] password)
This method is invoked when the 'storedPrivCreds' option is true, to store a repository credentials for the authenticated user. By default, this method creates a repository credentials with the same user/password credentials used during authentication.
A child class can override this method to behave differently.
username - password -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||