Package org.springframework.security.web.authentication.preauth

Examples of org.springframework.security.web.authentication.preauth.PreAuthenticatedGrantedAuthoritiesWebAuthenticationDetails


        if (logger.isDebugEnabled()) {
            logger.debug("J2EE roles [" + j2eeUserRoles + "] mapped to Granted Authorities: [" + userGas + "]");
        }

        PreAuthenticatedGrantedAuthoritiesWebAuthenticationDetails result =
                new PreAuthenticatedGrantedAuthoritiesWebAuthenticationDetails(context, userGas);

        return result;
    }
View Full Code Here


    public WebSpherePreAuthenticatedWebAuthenticationDetailsSource(WASUsernameAndGroupsExtractor wasHelper) {
        this.wasHelper = wasHelper;
    }

    public PreAuthenticatedGrantedAuthoritiesWebAuthenticationDetails buildDetails(HttpServletRequest context) {
        return new PreAuthenticatedGrantedAuthoritiesWebAuthenticationDetails(context, getWebSphereGroupsBasedGrantedAuthorities());
    }
View Full Code Here

        J2eeBasedPreAuthenticatedWebAuthenticationDetailsSource src = getJ2eeBasedPreAuthenticatedWebAuthenticationDetailsSource(mappedRoles);
        Object o = src.buildDetails(getRequest("testUser", userRoles));
        assertNotNull(o);
        assertTrue("Returned object not of type PreAuthenticatedGrantedAuthoritiesWebAuthenticationDetails, actual type: " + o.getClass(),
                o instanceof PreAuthenticatedGrantedAuthoritiesWebAuthenticationDetails);
        PreAuthenticatedGrantedAuthoritiesWebAuthenticationDetails details = (PreAuthenticatedGrantedAuthoritiesWebAuthenticationDetails) o;
        List<GrantedAuthority> gas = details.getGrantedAuthorities();
        assertNotNull("Granted authorities should not be null", gas);
        assertEquals(expectedRoles.length, gas.size());

        Collection<String> expectedRolesColl = Arrays.asList(expectedRoles);
        Collection<String> gasRolesSet = new HashSet<String>();
View Full Code Here

TOP

Related Classes of org.springframework.security.web.authentication.preauth.PreAuthenticatedGrantedAuthoritiesWebAuthenticationDetails

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.