public class XMLLoginModule extends UsernamePasswordLoginModule
callbackHandler, jbossModuleName, log, loginOk, options, principalClassModuleName, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass
Constructor and Description |
---|
XMLLoginModule() |
Modifier and Type | Method and Description |
---|---|
protected Group[] |
getRoleSets()
Obtain the various groups of roles for the user
|
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, validatePassword
abort, addValidOptions, checkOptions, commit, createGroup, createIdentity, getCallerPrincipalGroup, getUseFirstPass, logout
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize
in interface LoginModule
initialize
in class UsernamePasswordLoginModule
options
- - the login module option map. Supported options include:
userInfo: 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 LoginModule
login
in class UsernamePasswordLoginModule
LoginException
- 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 AbstractServerLoginModule
LoginException
protected String getUsersPassword()
UsernamePasswordLoginModule
getUsersPassword
in class UsernamePasswordLoginModule
Copyright © 2020 JBoss by Red Hat. All rights reserved.