Spring/Spring Security
Spring Security - 웹 요청 인가 표현식(security-context.xml)
java나유
2022. 11. 1. 12:04
hasRole(“권한”), hasAuthority(“권한”) |
해당 권한을 가졌는지 검사
|
hasAnyRole(“권한1[, 권한2] ”) |
해당 권한 중 하나라도 가졌는지 검사
|
permitAll |
모두 허용
|
denyAll |
모두 거부
|
isAnonymous() | 익명 사용자인지 검사 |
isAuthenticated() |
저장된 사용자 인지 검사
|
hasIpAddress(“IP표현”) |
허용된 IP인지 검사
|
728x90