public abstract class SAML2CommonLoginModule
extends org.jboss.security.auth.spi.UsernamePasswordLoginModule
The password sent to this module should be ServiceProviderSAMLContext.EMPTY_PASSWORD
The username is available from ServiceProviderSAMLContext.getUserName()
and roles is available from
ServiceProviderSAMLContext.getRoles()
. If the roles is null, then plugged in login modules in the stack have to
provide the roles.
Constructor and Description |
---|
SAML2CommonLoginModule() |
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) |
createPasswordHash, getCredentials, getUnauthenticatedIdentity, getUsername, getUsernameAndPassword, getValidateError, login, safeClose, setValidateError, validatePassword
protected String groupName
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
protected Principal getIdentity()
getIdentity
in class org.jboss.security.auth.spi.UsernamePasswordLoginModule
protected Group[] getRoleSets() throws LoginException
getRoleSets
in class org.jboss.security.auth.spi.AbstractServerLoginModule
LoginException
protected String getUsersPassword() throws LoginException
getUsersPassword
in class org.jboss.security.auth.spi.UsernamePasswordLoginModule
LoginException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.