Class NrichCsrfAutoConfiguration
java.lang.Object
net.croz.nrich.security.csrf.configuration.NrichCsrfAutoConfiguration
@ConditionalOnProperty(name="nrich.security.csrf.active",
havingValue="true",
matchIfMissing=true)
@EnableConfigurationProperties(NrichCsrfProperties.class)
@Configuration(proxyBeanMethods=false)
public class NrichCsrfAutoConfiguration
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.croz.nrich.security.csrf.webmvc.interceptor.CsrfInterceptorcsrfInterceptor(net.croz.nrich.security.csrf.api.service.CsrfTokenManagerService csrfTokenManagerService, NrichCsrfProperties csrfProperties) org.springframework.web.servlet.config.annotation.WebMvcConfigurercsrfInterceptorWebMvcConfigurer(net.croz.nrich.security.csrf.webmvc.interceptor.CsrfInterceptor csrfInterceptor) net.croz.nrich.security.csrf.core.controller.CsrfPingControllernet.croz.nrich.security.csrf.api.service.CsrfTokenManagerServicetokenManagerService(NrichCsrfProperties csrfProperties) net.croz.nrich.security.csrf.webflux.filter.CsrfWebFilterwebFilter(net.croz.nrich.security.csrf.api.service.CsrfTokenManagerService csrfTokenManagerService, NrichCsrfProperties csrfProperties)
-
Constructor Details
-
NrichCsrfAutoConfiguration
public NrichCsrfAutoConfiguration()
-
-
Method Details
-
tokenManagerService
@ConditionalOnMissingBean @Bean public net.croz.nrich.security.csrf.api.service.CsrfTokenManagerService tokenManagerService(NrichCsrfProperties csrfProperties) -
csrfPingController
@ConditionalOnMissingBean @Bean public net.croz.nrich.security.csrf.core.controller.CsrfPingController csrfPingController() -
csrfInterceptor
@ConditionalOnWebApplication(type=SERVLET) @ConditionalOnMissingBean @Bean public net.croz.nrich.security.csrf.webmvc.interceptor.CsrfInterceptor csrfInterceptor(net.croz.nrich.security.csrf.api.service.CsrfTokenManagerService csrfTokenManagerService, NrichCsrfProperties csrfProperties) -
webFilter
@ConditionalOnWebApplication(type=REACTIVE) @ConditionalOnMissingBean @Bean public net.croz.nrich.security.csrf.webflux.filter.CsrfWebFilter webFilter(net.croz.nrich.security.csrf.api.service.CsrfTokenManagerService csrfTokenManagerService, NrichCsrfProperties csrfProperties) -
csrfInterceptorWebMvcConfigurer
@ConditionalOnBean(net.croz.nrich.security.csrf.webmvc.interceptor.CsrfInterceptor.class) @Bean public org.springframework.web.servlet.config.annotation.WebMvcConfigurer csrfInterceptorWebMvcConfigurer(net.croz.nrich.security.csrf.webmvc.interceptor.CsrfInterceptor csrfInterceptor)
-