org.jboss.identity.federation.bindings.jboss.auth
Class SAML2LoginModule
java.lang.Object
org.jboss.security.auth.spi.AbstractServerLoginModule
org.jboss.security.auth.spi.UsernamePasswordLoginModule
org.jboss.identity.federation.bindings.jboss.auth.SAML2LoginModule
- All Implemented Interfaces:
- javax.security.auth.spi.LoginModule
public class SAML2LoginModule
- 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, initialize, login, setValidateError, validatePassword |
| Methods inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule |
abort, commit, createGroup, createIdentity, getUseFirstPass, logout |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SAML2LoginModule
public SAML2LoginModule()
getIdentity
protected java.security.Principal getIdentity()
- Overrides:
getIdentity in class org.jboss.security.auth.spi.UsernamePasswordLoginModule
getRoleSets
protected java.security.acl.Group[] getRoleSets()
throws javax.security.auth.login.LoginException
- Specified by:
getRoleSets in class org.jboss.security.auth.spi.AbstractServerLoginModule
- Throws:
javax.security.auth.login.LoginException
getUsersPassword
protected java.lang.String getUsersPassword()
throws javax.security.auth.login.LoginException
- Specified by:
getUsersPassword in class org.jboss.security.auth.spi.UsernamePasswordLoginModule
- Throws:
javax.security.auth.login.LoginException
Copyright © 2009 JBoss Inc.. All Rights Reserved.