public class DelegatingLoginModule
extends org.jboss.security.auth.spi.UsernamePasswordLoginModule
<security-domain name="RHQRESTSecurityDomain" cache-type="default">
<authentication>
<login-module code="org.rhq.enterprise.server.core.jaas.DelegatingLoginModule" flag="required">
<module-option name="delegateTo" value="RHQUserSecurityDomain"/>
<module-option name="additionalRoles" value="rest-user"/>
</login-module>
</authentication>
</security-domain>
| Constructor and Description |
|---|
DelegatingLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
protected Principal |
getIdentity() |
protected Group[] |
getRoleSets() |
protected String |
getUsersPassword() |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
boolean |
login()
Do the actual login work - we obtain the user/password passed in and then try to
log into the delegated context.
|
createPasswordHash, getCredentials, getUnauthenticatedIdentity, getUsername, getUsernameAndPassword, getValidateError, safeClose, setValidateError, validatePasswordpublic void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize in interface LoginModuleinitialize in class org.jboss.security.auth.spi.UsernamePasswordLoginModulepublic boolean login()
throws LoginException
login in interface LoginModulelogin in class org.jboss.security.auth.spi.UsernamePasswordLoginModuleLoginException - If anything goes wrongprotected String getUsersPassword() throws LoginException
getUsersPassword in class org.jboss.security.auth.spi.UsernamePasswordLoginModuleLoginExceptionprotected Principal getIdentity()
getIdentity in class org.jboss.security.auth.spi.UsernamePasswordLoginModuleprotected Group[] getRoleSets() throws LoginException
getRoleSets in class org.jboss.security.auth.spi.AbstractServerLoginModuleLoginExceptionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.