|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.security.auth.spi.AbstractServerLoginModule (src)
org.jboss.resource.security.AbstractPasswordCredentialLoginModule
A base login module that provides access to the ManagedConnectionFactory needed by the PasswordCredential.
PasswordCredential
(src) Field Summary |
Fields inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule (src) |
callbackHandler, loginOk, options, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass |
Constructor Summary | |
AbstractPasswordCredentialLoginModule()
|
Method Summary | |
protected ManagedConnectionFactory (src) |
getMcf()
|
protected MBeanServer (src) |
getServer()
|
void |
initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler handler,
java.util.Map sharedState,
java.util.Map options)
Initialize the login module. |
boolean |
login()
Return false if there is no mcf, else return super.login(). |
boolean |
logout()
Remove the user identity and roles added to the Subject during commit. |
protected void |
removeCredentials()
This removes the javax.security.auth.login.name and javax.security.auth.login.password settings from the sharteState map along with any PasswordCredential found in the PrivateCredentials set |
Methods inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule (src) |
abort, commit, createGroup, createIdentity, getIdentity, getRoleSets, getUnauthenticatedIdentity, getUseFirstPass |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractPasswordCredentialLoginModule()
Method Detail |
public void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler handler, java.util.Map sharedState, java.util.Map options)
AbstractServerLoginModule (src)
initialize
in interface javax.security.auth.spi.LoginModule
initialize
in class AbstractServerLoginModule (src)
subject
- the Subject to update after a successful login.handler
- the CallbackHandler that will be used to obtain the
the user identity and credentials.sharedState
- a Map shared between all configured login module instancesoptions
- the parameters passed to the login module.public boolean login() throws javax.security.auth.login.LoginException
login
in interface javax.security.auth.spi.LoginModule
login
in class AbstractServerLoginModule (src)
javax.security.auth.login.LoginException
- if an error occurspublic boolean logout() throws javax.security.auth.login.LoginException
AbstractServerLoginModule (src)
logout
in interface javax.security.auth.spi.LoginModule
logout
in class AbstractServerLoginModule (src)
javax.security.auth.login.LoginException
protected ManagedConnectionFactory (src) getMcf()
protected MBeanServer (src) getServer()
protected void removeCredentials()
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |