public class PropertiesUsersLoginModule extends UsersRolesLoginModule
LoginModule
that uses a properties file to store username and password for authentication.
No roles are mapped.callbackHandler, jbossModuleName, log, loginOk, options, principalClassModuleName, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass
Constructor and Description |
---|
PropertiesUsersLoginModule() |
Modifier and Type | Method and Description |
---|---|
protected Properties |
createRoles(Map<String,?> options)
A hook to allow subclasses to create the roles Properties map.
|
protected Group[] |
getRoleSets()
Create the set of roles the user belongs to by parsing the roles.properties
data for username=role1,role2,...
|
createUsers, getUsersPassword, initialize, loadRoles, loadUsers, login, parseGroupMembers
createPasswordHash, getCredentials, getIdentity, getUnauthenticatedIdentity, getUsername, getUsernameAndPassword, getValidateError, safeClose, setValidateError, validatePassword
abort, addValidOptions, checkOptions, commit, createGroup, createIdentity, getCallerPrincipalGroup, getUseFirstPass, logout
protected Group[] getRoleSets() throws LoginException
UsersRolesLoginModule
getRoleSets
in class UsersRolesLoginModule
LoginException
protected Properties createRoles(Map<String,?> options) throws IOException
UsersRolesLoginModule
createRoles
in class UsersRolesLoginModule
options
- - the login module options passed to initializeIOException
- - thrown on failure to load the propertiesCopyright © 2017 JBoss by Red Hat. All rights reserved.