Package org.springframework.security.access.expression

Examples of org.springframework.security.access.expression.SecurityExpressionRoot


    }

    @Override
    public Object getRootObject() {
        Authentication authentication = getAuthentication();
        return new SecurityExpressionRoot(authentication) {};
    }
View Full Code Here


  private AuthenticationTrustResolver trustResolver = new AuthenticationTrustResolverImpl();
  public EvaluationContext createEvaluationContext(
      Authentication authentication, FilterInvocation fi) {
    StandardEvaluationContext ctx = (StandardEvaluationContext) super
        .createEvaluationContext(authentication, fi);
    SecurityExpressionRoot root = new CustomWebSecurityExpressionRoot(
        authentication, fi.getHttpRequest());
    root.setTrustResolver(trustResolver);
//    AuthenticationTrustResolver atr;
    ctx.setRootObject(root);
    return ctx;
  }
View Full Code Here

  }
  public EvaluationContext createEvaluationContext(
      Authentication authentication, HttpServletRequest req) {
   
        StandardEvaluationContext ctx = new StandardEvaluationContext();
        SecurityExpressionRoot root = new CustomWebSecurityExpressionRoot(authentication, req);
        root.setTrustResolver(trustResolver);
//        root.setRoleHierarchy(roleHierarchy);
        ctx.setRootObject(root);
   
   
//    StandardEvaluationContext ctx = (StandardEvaluationContext) super
View Full Code Here

public class DefaultFlowStateSecurityExpressionHandler extends AbstractSecurityExpressionHandler<State> {

    @Override
    protected SecurityExpressionRoot createSecurityExpressionRoot(Authentication authentication, State invocation) {
        SecurityExpressionRoot root = new StateSecurityExpressionRoot(authentication, invocation);
        root.setPermissionEvaluator(getPermissionEvaluator());
        return root;
    }
View Full Code Here

        return expressionParser;
    }

    public EvaluationContext createEvaluationContext(Authentication authentication, FilterInvocation fi) {
        StandardEvaluationContext ctx = new StandardEvaluationContext();
        SecurityExpressionRoot root = new WebSecurityExpressionRoot(authentication, fi);
        root.setTrustResolver(trustResolver);
        root.setRoleHierarchy(roleHierarchy);
        ctx.setRootObject(root);

        return ctx;
    }
View Full Code Here

TOP

Related Classes of org.springframework.security.access.expression.SecurityExpressionRoot

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.