public class UsersLoginModule extends UsernamePasswordLoginModule
callbackHandler, jbossModuleName, log, loginOk, options, principalClassModuleName, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass| Constructor and Description | 
|---|
| UsersLoginModule() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected Group[] | getRoleSets()Return a group Roles with no members | 
| protected String | getUsersPassword()Get the expected password for the current username available via
    the getUsername() method. | 
| void | initialize(Subject subject,
          CallbackHandler callbackHandler,
          Map<String,?> sharedState,
          Map<String,?> options)Initialize this LoginModule. | 
| boolean | login()Method to authenticate a Subject (phase 1). | 
createPasswordHash, getCredentials, getIdentity, getUnauthenticatedIdentity, getUsername, getUsernameAndPassword, getValidateError, safeClose, setValidateError, validatePasswordabort, addValidOptions, checkOptions, commit, createGroup, createIdentity, getCallerPrincipalGroup, getUseFirstPass, logoutpublic void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize in interface LoginModuleinitialize in class UsernamePasswordLoginModuleoptions - the login module option map. Supported options include:
 usersProperties: The name of the properties resource containing
 user/passwords. The default is "users.properties"subject - the Subject to update after a successful login.callbackHandler - the CallbackHandler that will be used to obtain the
    the user identity and credentials.sharedState - a Map shared between all configured login module instancespublic boolean login()
              throws LoginException
login in interface LoginModulelogin in class UsernamePasswordLoginModuleLoginException - thrown if the users or roles properties files
 were not found or the super.login method fails.protected Group[] getRoleSets() throws LoginException
getRoleSets in class AbstractServerLoginModuleLoginExceptionprotected String getUsersPassword()
UsernamePasswordLoginModulegetUsersPassword in class UsernamePasswordLoginModuleCopyright © 2016 JBoss by Red Hat. All rights reserved.