public enum ScopeSecurityStrategy extends Enum<ScopeSecurityStrategy>
Description: TODO
| 枚举常量和说明 |
|---|
SCOPE_VOTER
使用Role Voter进行基于角色的权限校验
|
SECURITY_EXPRESSION
使用OAuth2表达式进行权限校验
OAuth2自身的权限表达式:
· #oauth2.clientHasRole
· #oauth2.clientHasAnyRole
· #oauth2.hasScope
· #oauth2.hasAnyScope
· #oauth2.hasScopeMatching
· #oauth2.hasAnyScopeMatching
· #oauth2.denyOAuthClient
· #oauth2.isOAuth
· #oauth2.isUser
· #oauth2.isClient
|
public static final ScopeSecurityStrategy SECURITY_EXPRESSION
public static final ScopeSecurityStrategy SCOPE_VOTER
public static ScopeSecurityStrategy[] values()
for (ScopeSecurityStrategy c : ScopeSecurityStrategy.values()) System.out.println(c);
public static ScopeSecurityStrategy valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2022. All rights reserved.