Spring Security Framework

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  String[] getUserRoles(Object context, 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 String[] getUserRoles(Object context,
                                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.

Spring Security Framework

Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.