PicketLink Federation Common Server Bindings for JBoss AS 2.1.3.1-redhat-1

org.picketlink.identity.federation.bindings.jboss.auth
Class SAML2CommonLoginModule

java.lang.Object
  extended by org.jboss.security.auth.spi.AbstractServerLoginModule
      extended by org.jboss.security.auth.spi.UsernamePasswordLoginModule
          extended by 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

Field Summary
protected  String groupName
           
 
Fields inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule
callbackHandler, log, loginOk, options, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass
 
Constructor Summary
SAML2CommonLoginModule()
           
 
Method Summary
protected  Principal getIdentity()
           
protected  Group[] getRoleSets()
           
protected  String getUsersPassword()
           
 void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
           
 
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
 

Field Detail

groupName

protected String groupName
Constructor Detail

SAML2CommonLoginModule

public SAML2CommonLoginModule()
Method Detail

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

PicketLink Federation Common Server Bindings for JBoss AS 2.1.3.1-redhat-1

Copyright © 2012 JBoss Inc.. All Rights Reserved.