WebSecurityConfig

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
@Bean(name = ["webCorsConfigurationSourceProperties"])
fun corsConfigurationSourceProperties(@Value(value = "${web.security.cors.path-patterns}") pathPattern: String, @Value(value = "${web.security.cors.origin-patterns}") originPatterns: String, @Value(value = "${web.security.cors.allowed-methods}") allowedMethods: String, @Value(value = "${web.security.cors.allowed-headers}") allowedHeaders: String, @Value(value = "${web.security.cors.exposed-headers}") exposedHeaders: String, @Value(value = "${web.security.cors.allow-credentials}") allowCredentials: Boolean, @Value(value = "${web.security.cors.max-age}") maxAge: Long): CorsConfigurationSourceProperties
Link copied to clipboard
@Bean(name = ["webDelegatedAccessDeniedHandler"])
fun delegatedAccessDeniedHandler(handlerExceptionResolver: HandlerExceptionResolver): AccessDeniedHandler
Link copied to clipboard
@Bean(name = ["webDelegatedAuthenticationEntryPoint"])
fun delegatedAuthenticationEntryPoint(handlerExceptionResolver: HandlerExceptionResolver): AuthenticationEntryPoint
Link copied to clipboard
@Profile(value = ["local"])
@Bean(name = ["LocalDelegatedSecurityConfigurer"])
fun localDelegatedSecurityConfig(delegatedAuthenticationEntryPoint: AuthenticationEntryPoint, delegatedAccessDeniedHandler: AccessDeniedHandler, tokenAuthProvider: AuthenticationProvider, corsConfigurationSourceProperties: CorsConfigurationSourceProperties): LocalDelegatedSecurityConfigurer
Link copied to clipboard
@Profile(value = ["local"])
@Bean(name = ["localwebSecurityFilterChain"])
fun localSecurityFilterChain(@Qualifier(value = "LocalDelegatedSecurityConfigurer") abstractDelegatedSecurityConfigurer: AbstractDelegatedSecurityConfigurer, http: HttpSecurity): SecurityFilterChain
Link copied to clipboard
@Profile(value = ["local"])
@Bean(name = ["localwebWebSecurityCustomizer"])
fun localWebSecurityFilterIgnoreCustomizer(@Qualifier(value = "LocalDelegatedSecurityConfigurer") abstractDelegatedSecurityConfigurer: AbstractDelegatedSecurityConfigurer): WebSecurityCustomizer
Link copied to clipboard
@Profile(value = ["!local"])
@Bean(name = ["ProdDelegatedSecurityConfigurer"])
fun prdDelegatedSecurityConfig(delegatedAuthenticationEntryPoint: AuthenticationEntryPoint, delegatedAccessDeniedHandler: AccessDeniedHandler, tokenAuthProvider: AuthenticationProvider, corsConfigurationSourceProperties: CorsConfigurationSourceProperties): ProdDelegatedSecurityConfigurer
Link copied to clipboard
@Profile(value = ["!local"])
@Bean(name = ["prodwebSecurityFilterChain"])
fun prodSecurityFilterChain(@Qualifier(value = "ProdDelegatedSecurityConfigurer") abstractDelegatedSecurityConfigurer: AbstractDelegatedSecurityConfigurer, http: HttpSecurity): SecurityFilterChain
Link copied to clipboard
@Profile(value = ["!local"])
@Bean(name = ["prodwebWebSecurityCustomizer"])
fun prodWebSecurityFilterIgnoreCustomizer(@Qualifier(value = "ProdDelegatedSecurityConfigurer") abstractDelegatedSecurityConfigurer: AbstractDelegatedSecurityConfigurer): WebSecurityCustomizer
Link copied to clipboard
@Bean(name = ["webTokenAuthProvider"])
fun tokenAuthProvider(tokenUserDetailsService: UserDetailsService): AuthenticationProvider
Link copied to clipboard
@Bean(name = ["webTokenGenerator"])
fun tokenGenerator(@Value(value = "${web.security.jwt.token.secretkey}") secretKey: String, @Value(value = "${web.security.jwt.token.validtime.access}") accessTokenValidTime: Long, @Value(value = "${web.security.jwt.token.validtime.refresh}") refreshTokenValidTime: Long): TokenGenerator
Link copied to clipboard
@Bean(name = ["webTokenResolver"])
fun tokenResolver(@Value(value = "${web.security.jwt.token.secretkey}") secretKey: String): TokenResolver
Link copied to clipboard
@Profile(value = ["!test"])
@Bean(name = ["webTokenUserDetailsService"])
fun tokenUserDetailsService(tokenResolver: TokenResolver): UserDetailsService
@Bean(name = ["webUserArgumentHandlerMethodArgumentResolver"])
fun userArgumentHandlerMethodArgumentResolver(tokenResolver: TokenResolver): HandlerMethodArgumentResolver
Link copied to clipboard
@Bean(name = ["webWebSecurityConfigurer"])
fun webSecurityConfigurer(userArgumentHandlerMethodArgumentResolver: HandlerMethodArgumentResolver): WebMvcConfigurer