org.springframework.security.ui.portlet
Class PortletPreAuthenticatedAuthenticationDetailsSource

java.lang.Object
  extended by org.springframework.security.ui.AuthenticationDetailsSourceImpl
      extended by org.springframework.security.ui.preauth.j2ee.AbstractPreAuthenticatedAuthenticationDetailsSource
          extended by org.springframework.security.ui.portlet.PortletPreAuthenticatedAuthenticationDetailsSource
All Implemented Interfaces:
AuthenticationDetailsSource

public class PortletPreAuthenticatedAuthenticationDetailsSource
extends AbstractPreAuthenticatedAuthenticationDetailsSource


Field Summary
 
Fields inherited from class org.springframework.security.ui.preauth.j2ee.AbstractPreAuthenticatedAuthenticationDetailsSource
j2eeMappableRoles, j2eeUserRoles2GrantedAuthoritiesMapper, logger
 
Constructor Summary
PortletPreAuthenticatedAuthenticationDetailsSource()
           
 
Method Summary
protected  java.lang.String[] getUserRoles(java.lang.Object context, java.lang.String[] mappableRoles)
          Allows the roles of the current user to be determined from the context object
 
Methods inherited from class org.springframework.security.ui.preauth.j2ee.AbstractPreAuthenticatedAuthenticationDetailsSource
afterPropertiesSet, buildDetails, setMappableRolesRetriever, setUserRoles2GrantedAuthoritiesMapper
 
Methods inherited from class org.springframework.security.ui.AuthenticationDetailsSourceImpl
setClazz
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletPreAuthenticatedAuthenticationDetailsSource

public PortletPreAuthenticatedAuthenticationDetailsSource()
Method Detail

getUserRoles

protected java.lang.String[] getUserRoles(java.lang.Object context,
                                          java.lang.String[] mappableRoles)
Description copied from class: AbstractPreAuthenticatedAuthenticationDetailsSource
Allows the roles of the current user to be determined from the context object

Specified by:
getUserRoles in class AbstractPreAuthenticatedAuthenticationDetailsSource
Parameters:
context - the context object (an HttpRequest, PortletRequest etc)
mappableRoles - the possible roles as determined by the MappableAttributesRetriever
Returns:
the subset of mappable roles which the current user has.