@Deprecated 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()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.expression.spel.support.StandardEvaluationContext |
createEvaluationContextInternal(org.springframework.security.core.Authentication authentication,
org.aopalliance.intercept.MethodInvocation mi)
Deprecated.
|
createSecurityExpressionRoot, filter, getDefaultRolePrefix, getParameterNameDiscoverer, getTrustResolver, setDefaultRolePrefix, setParameterNameDiscoverer, setPermissionCacheOptimizer, setReturnObject, setTrustResolver
createEvaluationContext, getExpressionParser, getPermissionEvaluator, getRoleHierarchy, setApplicationContext, setExpressionParser, setPermissionEvaluator, setRoleHierarchy
public 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.DefaultMethodSecurityExpressionHandler
Copyright © 2019. All rights reserved.