public class AuthInterceptor extends Object implements org.springframework.web.server.WebFilter
| 限定符和类型 | 字段和说明 |
|---|---|
private static org.springframework.util.AntPathMatcher |
ANT_PATH_MATCHER |
private List<AuthSecure> |
authSecures |
private static org.springframework.expression.EvaluationContext |
EVALUATION_CONTEXT |
private List<String> |
excludePathPatterns |
private static org.springframework.expression.ExpressionParser |
EXPRESSION_PARSER |
private static org.slf4j.Logger |
LOG |
private SecurityRegistry |
securityRegistry |
| 构造器和说明 |
|---|
AuthInterceptor(List<AuthSecure> authSecures,
List<String> excludePathPatterns,
SecurityRegistry securityRegistry) |
| 限定符和类型 | 方法和说明 |
|---|---|
private boolean |
checkAuth(org.springframework.http.server.reactive.ServerHttpRequest request,
AuthSecure authSecure) |
private boolean |
checkExpression(String expression) |
private boolean |
checkMethod(org.springframework.http.server.reactive.ServerHttpRequest request,
org.zodiac.commons.web.model.SimpleHttpMethod method) |
private boolean |
checkPath(org.springframework.http.server.reactive.ServerHttpRequest request,
String pattern) |
reactor.core.publisher.Mono<Void> |
filter(org.springframework.web.server.ServerWebExchange exchange,
org.springframework.web.server.WebFilterChain chain) |
private static final org.slf4j.Logger LOG
private static final org.springframework.expression.ExpressionParser EXPRESSION_PARSER
private static final org.springframework.expression.EvaluationContext EVALUATION_CONTEXT
private static final org.springframework.util.AntPathMatcher ANT_PATH_MATCHER
private final List<AuthSecure> authSecures
private final SecurityRegistry securityRegistry
public AuthInterceptor(List<AuthSecure> authSecures, List<String> excludePathPatterns, SecurityRegistry securityRegistry)
public reactor.core.publisher.Mono<Void> filter(@NonNull org.springframework.web.server.ServerWebExchange exchange, @NonNull org.springframework.web.server.WebFilterChain chain)
filter 在接口中 org.springframework.web.server.WebFilterprivate boolean checkAuth(org.springframework.http.server.reactive.ServerHttpRequest request,
AuthSecure authSecure)
private boolean checkMethod(org.springframework.http.server.reactive.ServerHttpRequest request,
org.zodiac.commons.web.model.SimpleHttpMethod method)
private boolean checkPath(org.springframework.http.server.reactive.ServerHttpRequest request,
String pattern)
private boolean checkExpression(String expression)
Copyright © 2022 Zodiac. All rights reserved.