|
||||||||||
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.security.auth.spi.UsernamePasswordLoginModule (src)
org.jboss.mq.sm.file.DynamicLoginModule
JAAS LoginModule that is backed by the DynamicStateManager. Must have the attribute sm.objectname set, and may have the unauthenticatedIdentity set to some value.
Field Summary |
Fields inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule (src) |
callbackHandler, log, loginOk, options, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass |
Constructor Summary | |
DynamicLoginModule()
|
Method Summary | |
protected java.security.acl.Group[] |
getRoleSets()
Overriden by subclasses to return the Groups that correspond to the to the role sets assigned to the user. |
protected java.lang.String |
getUsersPassword()
Overriden to return an empty password string as typically one cannot obtain a user's password. |
void |
initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.util.Map sharedState,
java.util.Map options)
Override the superclass method to look for the following options after first invoking the super version. |
boolean |
login()
Check we have contact to a state manager. |
protected boolean |
validatePassword(java.lang.String inputPassword,
java.lang.String expectedPassword)
Validate the password againts the state manager. |
Methods inherited from class org.jboss.security.auth.spi.UsernamePasswordLoginModule (src) |
createPasswordHash, getCredentials, getIdentity, getUnauthenticatedIdentity, getUsername, getUsernameAndPassword |
Methods inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule (src) |
abort, commit, createGroup, createIdentity, getUseFirstPass, logout |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DynamicLoginModule()
Method Detail |
public void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler callbackHandler, java.util.Map sharedState, java.util.Map options)
UsernamePasswordLoginModule (src)
initialize
in interface javax.security.auth.spi.LoginModule
initialize
in class UsernamePasswordLoginModule (src)
options
- :public boolean login() throws javax.security.auth.login.LoginException
login
in interface javax.security.auth.spi.LoginModule
login
in class UsernamePasswordLoginModule (src)
javax.security.auth.login.LoginException
protected java.lang.String getUsersPassword() throws javax.security.auth.login.LoginException
getUsersPassword
in class UsernamePasswordLoginModule (src)
javax.security.auth.login.LoginException
protected boolean validatePassword(java.lang.String inputPassword, java.lang.String expectedPassword)
validatePassword
in class UsernamePasswordLoginModule (src)
inputPassword
- the password to validate.expectedPassword
- ignored
protected java.security.acl.Group[] getRoleSets() throws javax.security.auth.login.LoginException
getRoleSets
in class AbstractServerLoginModule (src)
javax.security.auth.login.LoginException
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |