| | |
| | | @EnableConfigurationProperties({BladeSecureProperties.class}) |
| | | @Configuration(proxyBeanMethods = false) |
| | | @Order |
| | | /* loaded from: blade-core-secure-9.3.0.0-SNAPSHOT.jar:org/springblade/core/secure/config/SecureConfiguration.class */ |
| | | |
| | | public class SecureConfiguration implements WebMvcConfigurer { |
| | | private final SecureRegistry secureRegistry; |
| | | private final BladeSecureProperties secureProperties; |
| | |
| | | List<AuthSecure> authSecures = this.secureRegistry.addAuthPatterns(this.secureProperties.getAuth()).getAuthSecures(); |
| | | if (authSecures.size() > 0) { |
| | | registry.addInterceptor(this.secureHandler.authInterceptor(authSecures)); |
| | | this.secureRegistry.excludePathPatterns((List) authSecures.stream().map((v0) -> { |
| | | this.secureRegistry.excludePathPatterns(authSecures.stream().map((v0) -> { |
| | | return v0.getPattern(); |
| | | }).collect(Collectors.toList())); |
| | | } |
| | |
| | | List<BasicSecure> basicSecures = this.secureRegistry.addBasicPatterns(this.secureProperties.getBasic()).getBasicSecures(); |
| | | if (basicSecures.size() > 0) { |
| | | registry.addInterceptor(this.secureHandler.basicInterceptor(basicSecures)); |
| | | this.secureRegistry.excludePathPatterns((List) basicSecures.stream().map((v0) -> { |
| | | this.secureRegistry.excludePathPatterns(basicSecures.stream().map((v0) -> { |
| | | return v0.getPattern(); |
| | | }).collect(Collectors.toList())); |
| | | } |
| | |
| | | List<SignSecure> signSecures = this.secureRegistry.addSignPatterns(this.secureProperties.getSign()).getSignSecures(); |
| | | if (signSecures.size() > 0) { |
| | | registry.addInterceptor(this.secureHandler.signInterceptor(signSecures)); |
| | | this.secureRegistry.excludePathPatterns((List) signSecures.stream().map((v0) -> { |
| | | this.secureRegistry.excludePathPatterns( signSecures.stream().map((v0) -> { |
| | | return v0.getPattern(); |
| | | }).collect(Collectors.toList())); |
| | | } |