public class OAuth2WebSecurityExpressionHandler
extends org.springframework.security.web.access.expression.DefaultWebSecurityExpressionHandler
A security expression handler that can handle default web 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 |
|---|
OAuth2WebSecurityExpressionHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.expression.spel.support.StandardEvaluationContext |
createEvaluationContextInternal(org.springframework.security.core.Authentication authentication,
org.springframework.security.web.FilterInvocation invocation) |
createSecurityExpressionRoot, setDefaultRolePrefix, setTrustResolvercreateEvaluationContext, getExpressionParser, getPermissionEvaluator, getRoleHierarchy, setApplicationContext, setExpressionParser, setPermissionEvaluator, setRoleHierarchyprotected org.springframework.expression.spel.support.StandardEvaluationContext createEvaluationContextInternal(org.springframework.security.core.Authentication authentication,
org.springframework.security.web.FilterInvocation invocation)
createEvaluationContextInternal in class org.springframework.security.access.expression.AbstractSecurityExpressionHandler<org.springframework.security.web.FilterInvocation>Copyright © 2019. All rights reserved.