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, setValidateError
abort, addValidOptions, checkOptions, commit, createGroup, createIdentity, getCallerPrincipalGroup, getUseFirstPass
protected Principal getIdentity()
AbstractServerLoginModule
getIdentity
in class UsernamePasswordLoginModule
protected boolean validatePassword(String inputPassword, String expectedPassword)
UsernamePasswordLoginModule
validatePassword
in class UsernamePasswordLoginModule
protected Group[] getRoleSets() throws LoginException
AbstractServerLoginModule
getRoleSets
in class AbstractServerLoginModule
LoginException
protected String getUsersPassword() throws LoginException
UsernamePasswordLoginModule
getUsersPassword
in class UsernamePasswordLoginModule
LoginException
public boolean logout() throws LoginException
AbstractServerLoginModule
logout
in interface LoginModule
logout
in class AbstractServerLoginModule
LoginException
Copyright © 2016 JBoss by Red Hat. All rights reserved.