| org.jboss.mq.sm.file.DynamicLoginModule
DynamicLoginModule | public class DynamicLoginModule extends UsernamePasswordLoginModule (Code) | | JAAS LoginModule that is backed by the DynamicStateManager.
Must have the attribute sm.objectname set,
and may have the unauthenticatedIdentity set to some value.
author: Peter Antman version: $Revision: 57198 $ |
Method Summary | |
protected Group[] | getRoleSets() Overriden by subclasses to return the Groups that correspond to the
to the role sets assigned to the user. | protected String | getUsersPassword() Overriden to return an empty password string as typically one cannot
obtain a user's password. | public void | initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options) | public boolean | login() Check we have contact to a state manager. | protected boolean | validatePassword(String inputPassword, String expectedPassword) Validate the password againts the state manager. |
DynamicLoginModule | public DynamicLoginModule()(Code) | | |
getRoleSets | protected Group[] getRoleSets() throws LoginException(Code) | | Overriden by subclasses to return the Groups that correspond to the
to the role sets assigned to the user. Subclasses should create at
least a Group named "Roles" that contains the roles assigned to the user.
A second common group is "CallerPrincipal" that provides the application
identity of the user rather than the security domain identity.
Only a Roles Group is returned.
Group[] containing the sets of roles |
getUsersPassword | protected String getUsersPassword() throws LoginException(Code) | | Overriden to return an empty password string as typically one cannot
obtain a user's password. We also override the validatePassword so
this is ok.
and empty password String |
validatePassword | protected boolean validatePassword(String inputPassword, String expectedPassword)(Code) | | Validate the password againts the state manager.
Parameters: inputPassword - the password to validate. Parameters: expectedPassword - ignored |
|
|