public class OAuth2MethodSecurityExpressionHandler
extends org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler
A security expression handler that can handle default method security expressions plus the set provided by
OAuth2SecurityExpressionMethods using the variable oauth2 to access the methods. For example, the expression
#oauth2.clientHasRole('ROLE_ADMIN') would invoke OAuth2SecurityExpressionMethods.clientHasRole(java.lang.String)
By default the OAuth2ExpressionParser is used. If this is undesirable one can inject their own
ExpressionParser using AbstractSecurityExpressionHandler.setExpressionParser(ExpressionParser).
OAuth2ExpressionParser| Constructor and Description |
|---|
OAuth2MethodSecurityExpressionHandler() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.expression.spel.support.StandardEvaluationContext |
createEvaluationContextInternal(org.springframework.security.core.Authentication authentication,
org.aopalliance.intercept.MethodInvocation mi) |
createSecurityExpressionRoot, filter, getDefaultRolePrefix, getParameterNameDiscoverer, getTrustResolver, setDefaultRolePrefix, setParameterNameDiscoverer, setPermissionCacheOptimizer, setReturnObject, setTrustResolvercreateEvaluationContext, getExpressionParser, getPermissionEvaluator, getRoleHierarchy, setApplicationContext, setExpressionParser, setPermissionEvaluator, setRoleHierarchypublic OAuth2MethodSecurityExpressionHandler()
public org.springframework.expression.spel.support.StandardEvaluationContext createEvaluationContextInternal(org.springframework.security.core.Authentication authentication,
org.aopalliance.intercept.MethodInvocation mi)
createEvaluationContextInternal in class org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandlerCopyright © 2019. All rights reserved.