Class J2eeBasedPreAuthenticatedWebAuthenticationDetailsSource

    • Field Detail

      • logger

        protected final org.apache.commons.logging.Log logger
      • j2eeMappableRoles

        protected java.util.Set<java.lang.String> j2eeMappableRoles
        The role attributes returned by the configured MappableAttributesRetriever
    • Constructor Detail

      • J2eeBasedPreAuthenticatedWebAuthenticationDetailsSource

        public J2eeBasedPreAuthenticatedWebAuthenticationDetailsSource()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
        Check that all required properties have been set.
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • getUserRoles

        protected java.util.Collection<java.lang.String> getUserRoles​(javax.servlet.http.HttpServletRequest request)
        Obtains the list of user roles based on the current user's JEE roles. The HttpServletRequest.isUserInRole(String) method is called for each of the values in the j2eeMappableRoles set to determine if that role should be assigned to the user.
        request - the request which should be used to extract the user's roles.
        The subset of j2eeMappableRoles which applies to the current user making the request.
      • setMappableRolesRetriever

        public void setMappableRolesRetriever​(MappableAttributesRetriever aJ2eeMappableRolesRetriever)
        aJ2eeMappableRolesRetriever - The MappableAttributesRetriever to use
      • setUserRoles2GrantedAuthoritiesMapper

        public void setUserRoles2GrantedAuthoritiesMapper​(Attributes2GrantedAuthoritiesMapper mapper)
        mapper - The Attributes2GrantedAuthoritiesMapper to use