public enum RoleSecurityStrategy extends Enum<RoleSecurityStrategy>
Description: 基于角色的权限校验策略
| 枚举常量和说明 |
|---|
ROLE_VOTER
使用Role Voter进行基于角色的权限校验
|
SECURITY_EXPRESSION
使用Security表达式进行权限校验
Security自身的权限表达式:
· hasRole
· hasAnyRole
· hasAuthority
· hasAnyAuthority
· hasIpAddress
|
public static final RoleSecurityStrategy SECURITY_EXPRESSION
public static final RoleSecurityStrategy ROLE_VOTER
public static RoleSecurityStrategy[] values()
for (RoleSecurityStrategy c : RoleSecurityStrategy.values()) System.out.println(c);
public static RoleSecurityStrategy valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2022. All rights reserved.