List of usage examples for org.springframework.security.access.expression.method MethodSecurityExpressionRoot MethodSecurityExpressionRoot
MethodSecurityExpressionRoot(Authentication a)
From source file:org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler.java
/** * Creates the root object for expression evaluation. *//* w w w . j a v a 2 s . c om*/ protected MethodSecurityExpressionOperations createSecurityExpressionRoot(Authentication authentication, MethodInvocation invocation) { MethodSecurityExpressionRoot root = new MethodSecurityExpressionRoot(authentication); root.setThis(invocation.getThis()); root.setPermissionEvaluator(getPermissionEvaluator()); root.setTrustResolver(getTrustResolver()); root.setRoleHierarchy(getRoleHierarchy()); root.setDefaultRolePrefix(getDefaultRolePrefix()); return root; }