public class RealmDirectLoginModule
extends org.jboss.security.auth.spi.UsernamePasswordLoginModule
Constructor and Description |
---|
RealmDirectLoginModule() |
Modifier and Type | Method and Description |
---|---|
protected String |
createPasswordHash(String username,
String password,
String digestOption) |
protected Group[] |
getRoleSets() |
protected String |
getUsersPassword() |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
boolean |
login() |
protected boolean |
validatePassword(String inputPassword,
String expectedPassword) |
getCredentials, getIdentity, getUnauthenticatedIdentity, getUsername, getUsernameAndPassword, getValidateError, safeClose, setValidateError
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize
in interface LoginModule
initialize
in class org.jboss.security.auth.spi.UsernamePasswordLoginModule
public boolean login() throws LoginException
login
in interface LoginModule
login
in class org.jboss.security.auth.spi.UsernamePasswordLoginModule
LoginException
protected String createPasswordHash(String username, String password, String digestOption) throws LoginException
createPasswordHash
in class org.jboss.security.auth.spi.UsernamePasswordLoginModule
LoginException
protected String getUsersPassword() throws LoginException
getUsersPassword
in class org.jboss.security.auth.spi.UsernamePasswordLoginModule
LoginException
UsernamePasswordLoginModule.getUsersPassword()
protected boolean validatePassword(String inputPassword, String expectedPassword)
validatePassword
in class org.jboss.security.auth.spi.UsernamePasswordLoginModule
protected Group[] getRoleSets() throws LoginException
getRoleSets
in class org.jboss.security.auth.spi.AbstractServerLoginModule
LoginException
Copyright © 2017 JBoss by Red Hat. All rights reserved.