DocsSecurityConfig

@Configuration(value = "apiLibrarySecurityConfig")
@EnableWebSecurity
@ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.SERVLET)
@ConditionalOnProperty(name = "cryptotrader.api.security.enabled", havingValue = "true", matchIfMissing = true)
open class DocsSecurityConfig

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
@Bean
@Order(value = 1)
open fun docsAndActuator(@NotNull http: @NotNull HttpSecurity): SecurityFilterChain
Link copied to clipboard
@Bean
@ConditionalOnMissingBean(value = BCryptPasswordEncoder::class)
@NotNull
open fun passwordEncoder(): @NotNull BCryptPasswordEncoder