public class SimpleServerLoginModule extends UsernamePasswordLoginModule
callbackHandler, jbossModuleName, log, loginOk, options, principalClassModuleName, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass| Constructor and Description |
|---|
SimpleServerLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
protected Principal |
getIdentity()
Overriden by subclasses to return the Principal that corresponds to
the user primary identity.
|
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()
Get the expected password for the current username available via
the getUsername() method.
|
boolean |
logout()
Remove the user identity and roles added to the Subject during commit.
|
protected boolean |
validatePassword(String inputPassword,
String expectedPassword)
A hook that allows subclasses to change the validation of the input
password against the expected password.
|
createPasswordHash, getCredentials, getUnauthenticatedIdentity, getUsername, getUsernameAndPassword, getValidateError, initialize, login, safeClose, setValidateErrorabort, addValidOptions, checkOptions, commit, createGroup, createIdentity, getCallerPrincipalGroup, getUseFirstPassprotected Principal getIdentity()
AbstractServerLoginModulegetIdentity in class UsernamePasswordLoginModuleprotected boolean validatePassword(String inputPassword, String expectedPassword)
UsernamePasswordLoginModulevalidatePassword in class UsernamePasswordLoginModuleprotected Group[] getRoleSets() throws LoginException
AbstractServerLoginModulegetRoleSets in class AbstractServerLoginModuleLoginExceptionprotected String getUsersPassword() throws LoginException
UsernamePasswordLoginModulegetUsersPassword in class UsernamePasswordLoginModuleLoginExceptionpublic boolean logout()
throws LoginException
AbstractServerLoginModulelogout in interface LoginModulelogout in class AbstractServerLoginModuleLoginExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.