org.springframework.security.web.authentication.preauth.websphere
Class WebSpherePreAuthenticatedWebAuthenticationDetailsSource

java.lang.Object
  extended by org.springframework.security.web.authentication.preauth.websphere.WebSpherePreAuthenticatedWebAuthenticationDetailsSource
All Implemented Interfaces:
AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,PreAuthenticatedGrantedAuthoritiesWebAuthenticationDetails>

public class WebSpherePreAuthenticatedWebAuthenticationDetailsSource
extends Object
implements AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,PreAuthenticatedGrantedAuthoritiesWebAuthenticationDetails>

This AuthenticationDetailsSource implementation will set the pre-authenticated granted authorities based on the WebSphere groups for the current WebSphere user, mapped using the configured Attributes2GrantedAuthoritiesMapper.


Constructor Summary
WebSpherePreAuthenticatedWebAuthenticationDetailsSource()
           
WebSpherePreAuthenticatedWebAuthenticationDetailsSource(org.springframework.security.web.authentication.preauth.websphere.WASUsernameAndGroupsExtractor wasHelper)
           
 
Method Summary
 PreAuthenticatedGrantedAuthoritiesWebAuthenticationDetails buildDetails(javax.servlet.http.HttpServletRequest context)
          Called by a class when it wishes a new authentication details instance to be created.
 void setWebSphereGroups2GrantedAuthoritiesMapper(Attributes2GrantedAuthoritiesMapper mapper)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebSpherePreAuthenticatedWebAuthenticationDetailsSource

public WebSpherePreAuthenticatedWebAuthenticationDetailsSource()

WebSpherePreAuthenticatedWebAuthenticationDetailsSource

public WebSpherePreAuthenticatedWebAuthenticationDetailsSource(org.springframework.security.web.authentication.preauth.websphere.WASUsernameAndGroupsExtractor wasHelper)
Method Detail

buildDetails

public PreAuthenticatedGrantedAuthoritiesWebAuthenticationDetails buildDetails(javax.servlet.http.HttpServletRequest context)
Description copied from interface: AuthenticationDetailsSource
Called by a class when it wishes a new authentication details instance to be created.

Specified by:
buildDetails in interface AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,PreAuthenticatedGrantedAuthoritiesWebAuthenticationDetails>
Parameters:
context - the request object, which may be used by the authentication details object
Returns:
a fully-configured authentication details instance

setWebSphereGroups2GrantedAuthoritiesMapper

public void setWebSphereGroups2GrantedAuthoritiesMapper(Attributes2GrantedAuthoritiesMapper mapper)
Parameters:
mapper - The Attributes2GrantedAuthoritiesMapper to use for converting the WAS groups to authorities