|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.security.auth.spi.AbstractServerLoginModule
org.jboss.resource.security.AbstractPasswordCredentialLoginModule
public abstract class AbstractPasswordCredentialLoginModule
A base login module that provides access to the ManagedConnectionFactory needed by the PasswordCredential.
PasswordCredential
Field Summary |
---|
Fields inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule |
---|
callbackHandler, loginOk, options, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass |
Constructor Summary | |
---|---|
AbstractPasswordCredentialLoginModule()
|
Method Summary | |
---|---|
protected javax.resource.spi.ManagedConnectionFactory |
getMcf()
|
protected MBeanServer |
getServer()
|
void |
initialize(Subject subject,
CallbackHandler handler,
Map sharedState,
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 |
---|
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(Subject subject, CallbackHandler handler, Map sharedState, Map options)
AbstractServerLoginModule
initialize
in interface LoginModule
initialize
in class AbstractServerLoginModule
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 LoginException
login
in interface LoginModule
login
in class AbstractServerLoginModule
LoginException
- if an error occurspublic boolean logout() throws LoginException
AbstractServerLoginModule
logout
in interface LoginModule
logout
in class AbstractServerLoginModule
LoginException
protected javax.resource.spi.ManagedConnectionFactory getMcf()
protected MBeanServer getServer()
protected void removeCredentials()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |