Package org.springframework.security.access.expression.method

Examples of org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler


        assertTrue(objects.contains("apple"));
        assertTrue(objects.contains("aubergine"));
    }

    private void configureForElAnnotations() {
        DefaultMethodSecurityExpressionHandler eh = new DefaultMethodSecurityExpressionHandler();
        interceptor.setSecurityMetadataSource(new PrePostAnnotationSecurityMetadataSource(
                new ExpressionBasedAnnotationAttributeFactory(eh)));
        interceptor.setAccessDecisionManager(adm);
        AfterInvocationProviderManager aim = new AfterInvocationProviderManager();
        aim.setProviders(Arrays.asList(new PostInvocationAdviceProvider(new ExpressionBasedPostInvocationAdvice(eh))));
View Full Code Here


        @Autowired
        private OwnerBasedPermissionEvaluator ownerBasedPermissionEvaluator;

        @Bean
        MethodSecurityExpressionHandler expressionHandler() {
            DefaultMethodSecurityExpressionHandler expressionHandler = new DefaultMethodSecurityExpressionHandler();
            ownerBasedPermissionEvaluator.setUserDetailsService(userDetailsService);
            expressionHandler.setPermissionEvaluator(ownerBasedPermissionEvaluator);
            return expressionHandler;
        }
View Full Code Here

     * <p>Subclasses may override this method to provide a custom {@link MethodSecurityExpressionHandler}</p>
     *
     * @return
     */
    protected MethodSecurityExpressionHandler expressionHandler() {
        return new DefaultMethodSecurityExpressionHandler();
    }
View Full Code Here

     *
     * @return
     */
    @Bean
    public MethodSecurityExpressionHandler methodExpressionHandler() {
        return new DefaultMethodSecurityExpressionHandler();
    }
View Full Code Here

TOP

Related Classes of org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler

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.