org.picketlink.identity.federation.bindings.jboss.auth
Class SAML2CommonLoginModule
java.lang.Object
org.jboss.security.auth.spi.AbstractServerLoginModule
org.jboss.security.auth.spi.UsernamePasswordLoginModule
org.picketlink.identity.federation.bindings.jboss.auth.SAML2CommonLoginModule
- All Implemented Interfaces:
- LoginModule
- Direct Known Subclasses:
- SAML2LoginModule
public abstract class SAML2CommonLoginModule
- extends org.jboss.security.auth.spi.UsernamePasswordLoginModule
Login Module that is capable of dealing with SAML2 cases
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.
- Since:
- Feb 13, 2009
- Author:
- Anil.Saldhana@redhat.com
Fields inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule |
callbackHandler, log, loginOk, options, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass |
Methods inherited from class org.jboss.security.auth.spi.UsernamePasswordLoginModule |
createPasswordHash, getCredentials, getUnauthenticatedIdentity, getUsername, getUsernameAndPassword, getValidateError, login, safeClose, setValidateError, validatePassword |
Methods inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule |
abort, addValidOptions, checkOptions, commit, createGroup, createIdentity, getCallerPrincipalGroup, getUseFirstPass, logout |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
groupName
protected String groupName
SAML2CommonLoginModule
public SAML2CommonLoginModule()
initialize
public void initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options)
- Specified by:
initialize
in interface LoginModule
- Overrides:
initialize
in class org.jboss.security.auth.spi.UsernamePasswordLoginModule
getIdentity
protected Principal getIdentity()
- Overrides:
getIdentity
in class org.jboss.security.auth.spi.UsernamePasswordLoginModule
getRoleSets
protected Group[] getRoleSets()
throws LoginException
- Specified by:
getRoleSets
in class org.jboss.security.auth.spi.AbstractServerLoginModule
- Throws:
LoginException
getUsersPassword
protected String getUsersPassword()
throws LoginException
- Specified by:
getUsersPassword
in class org.jboss.security.auth.spi.UsernamePasswordLoginModule
- Throws:
LoginException
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.