Package org.jboss.security.auth.spi
Class SimpleUsersLoginModule
- java.lang.Object
-
- org.jboss.security.auth.spi.AbstractServerLoginModule
-
- org.jboss.security.auth.spi.UsernamePasswordLoginModule
-
- org.jboss.security.auth.spi.UsersRolesLoginModule
-
- org.jboss.security.auth.spi.PropertiesUsersLoginModule
-
- org.jboss.security.auth.spi.SimpleUsersLoginModule
-
- All Implemented Interfaces:
LoginModule
public class SimpleUsersLoginModule extends PropertiesUsersLoginModule
ALoginModule
that stores username and password as options.- Author:
- Marcus Moyses
-
-
Field Summary
Fields Modifier and Type Field Description protected static Set<String>
invalidProperties
-
Fields inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule
callbackHandler, jbossModuleName, log, loginOk, options, principalClassModuleName, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass
-
-
Constructor Summary
Constructors Constructor Description SimpleUsersLoginModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkOptions()
This login module cannot participate in the checking of valid options in AbstractServerLoginModule.protected Properties
createUsers(Map<String,?> options)
A hook to allow subclasses to create the users Properties map.protected boolean
isValidEntry(String key)
-
Methods inherited from class org.jboss.security.auth.spi.PropertiesUsersLoginModule
createRoles, getRoleSets
-
Methods inherited from class org.jboss.security.auth.spi.UsersRolesLoginModule
getUsersPassword, initialize, loadRoles, loadUsers, login, parseGroupMembers
-
Methods inherited from class org.jboss.security.auth.spi.UsernamePasswordLoginModule
createPasswordHash, getCredentials, getIdentity, getUnauthenticatedIdentity, getUsername, getUsernameAndPassword, getValidateError, safeClose, setValidateError, validatePassword
-
Methods inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule
abort, addValidOptions, commit, createGroup, createIdentity, getCallerPrincipalGroup, getUseFirstPass, logout
-
-
-
-
Method Detail
-
createUsers
protected Properties createUsers(Map<String,?> options) throws IOException
Description copied from class:UsersRolesLoginModule
A hook to allow subclasses to create the users Properties map. This implementation simply calls loadUsers() and returns the users ivar. Subclasses can override to obtain the users Properties map in a different way.- Overrides:
createUsers
in classUsersRolesLoginModule
- Parameters:
options
- - the login module options passed to initialize- Returns:
- Properties map used for the username/password mapping.
- Throws:
IOException
- - thrown on failure to load the properties
-
isValidEntry
protected boolean isValidEntry(String key)
-
checkOptions
protected void checkOptions()
This login module cannot participate in the checking of valid options in AbstractServerLoginModule. Hence this override to prevent false alarms- Overrides:
checkOptions
in classAbstractServerLoginModule
-
-