Move Dsl files to annotation Package

Closes gh-10333
This commit is contained in:
Norbert Nowak 2021-11-05 20:12:59 +01:00 committed by Josh Cummings
parent 0d8450a725
commit 4f186f2c1f
84 changed files with 112 additions and 112 deletions

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.springframework.http.HttpMethod
import org.springframework.security.web.util.matcher.AnyRequestMatcher

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.springframework.security.authentication.AuthenticationProvider
import org.springframework.security.config.annotation.web.builders.HttpSecurity

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.springframework.http.HttpMethod
import org.springframework.security.config.annotation.web.builders.HttpSecurity

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.CorsConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.CsrfConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.ExceptionHandlingConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.springframework.security.authentication.AuthenticationDetailsSource
import org.springframework.security.config.annotation.web.HttpSecurityBuilder

View File

@ -14,11 +14,11 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.HeadersConfigurer
import org.springframework.security.config.web.servlet.headers.*
import org.springframework.security.config.annotation.web.headers.*
import org.springframework.security.web.header.HeaderWriter
import org.springframework.security.web.header.writers.*
import org.springframework.security.web.header.writers.frameoptions.XFrameOptionsHeaderWriter

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.springframework.security.authentication.AuthenticationDetailsSource
import org.springframework.security.config.annotation.web.builders.HttpSecurity

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.springframework.context.ApplicationContext
import org.springframework.security.authentication.AuthenticationManager

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.LogoutConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
/*
* Copyright 2002-2020 the original author or authors.
@ -33,8 +33,8 @@ package org.springframework.security.config.web.servlet
*/
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.web.servlet.oauth2.client.AuthorizationCodeGrantDsl
import org.springframework.security.config.web.servlet.oauth2.login.AuthorizationEndpointDsl
import org.springframework.security.config.annotation.web.oauth2.client.AuthorizationCodeGrantDsl
import org.springframework.security.config.annotation.web.oauth2.login.AuthorizationEndpointDsl
import org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2ClientConfigurer
import org.springframework.security.oauth2.client.OAuth2AuthorizedClientService
import org.springframework.security.oauth2.client.registration.ClientRegistrationRepository

View File

@ -14,15 +14,15 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.springframework.security.authentication.AuthenticationDetailsSource
import org.springframework.security.config.annotation.web.HttpSecurityBuilder
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.web.servlet.oauth2.login.AuthorizationEndpointDsl
import org.springframework.security.config.web.servlet.oauth2.login.RedirectionEndpointDsl
import org.springframework.security.config.web.servlet.oauth2.login.TokenEndpointDsl
import org.springframework.security.config.web.servlet.oauth2.login.UserInfoEndpointDsl
import org.springframework.security.config.annotation.web.oauth2.login.AuthorizationEndpointDsl
import org.springframework.security.config.annotation.web.oauth2.login.RedirectionEndpointDsl
import org.springframework.security.config.annotation.web.oauth2.login.TokenEndpointDsl
import org.springframework.security.config.annotation.web.oauth2.login.UserInfoEndpointDsl
import org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer
import org.springframework.security.oauth2.client.OAuth2AuthorizedClientService
import org.springframework.security.oauth2.client.registration.ClientRegistrationRepository

View File

@ -14,12 +14,12 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.springframework.security.authentication.AuthenticationManagerResolver
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.web.servlet.oauth2.resourceserver.JwtDsl
import org.springframework.security.config.web.servlet.oauth2.resourceserver.OpaqueTokenDsl
import org.springframework.security.config.annotation.web.oauth2.resourceserver.JwtDsl
import org.springframework.security.config.annotation.web.oauth2.resourceserver.OpaqueTokenDsl
import org.springframework.security.config.annotation.web.configurers.oauth2.server.resource.OAuth2ResourceServerConfigurer
import org.springframework.security.oauth2.server.resource.web.BearerTokenResolver
import org.springframework.security.web.AuthenticationEntryPoint

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.PasswordManagementConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.PortMapperConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.RememberMeConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.RequestCacheConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.ChannelSecurityConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.springframework.security.authentication.AuthenticationManager
import org.springframework.security.config.annotation.web.HttpSecurityBuilder

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
/**
* Marker annotation indicating that the annotated class is part of the security DSL.

View File

@ -14,11 +14,11 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.web.servlet.session.SessionConcurrencyDsl
import org.springframework.security.config.web.servlet.session.SessionFixationDsl
import org.springframework.security.config.annotation.web.session.SessionConcurrencyDsl
import org.springframework.security.config.annotation.web.session.SessionFixationDsl
import org.springframework.security.config.annotation.web.configurers.SessionManagementConfigurer
import org.springframework.security.config.http.SessionCreationPolicy
import org.springframework.security.web.authentication.AuthenticationFailureHandler

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.springframework.security.authentication.AuthenticationDetailsSource
import org.springframework.security.config.annotation.web.builders.HttpSecurity

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.headers
package org.springframework.security.config.annotation.web.headers
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.HeadersConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.headers
package org.springframework.security.config.annotation.web.headers
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.HeadersConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.headers
package org.springframework.security.config.annotation.web.headers
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.HeadersConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.headers
package org.springframework.security.config.annotation.web.headers
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.HeadersConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.headers
package org.springframework.security.config.annotation.web.headers
/**
* Marker annotation indicating that the annotated class is part of the headers security DSL.

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.headers
package org.springframework.security.config.annotation.web.headers
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.HeadersConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.headers
package org.springframework.security.config.annotation.web.headers
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.HeadersConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.headers
package org.springframework.security.config.annotation.web.headers
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.HeadersConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.headers
package org.springframework.security.config.annotation.web.headers
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.HeadersConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.headers
package org.springframework.security.config.annotation.web.headers
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.HeadersConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.oauth2.client
package org.springframework.security.config.annotation.web.oauth2.client
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2ClientConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.oauth2.client
package org.springframework.security.config.annotation.web.oauth2.client
/**
* Marker annotation indicating that the annotated class is part of the OAuth 2.0 client security DSL.

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.oauth2.login
package org.springframework.security.config.annotation.web.oauth2.login
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.oauth2.login
package org.springframework.security.config.annotation.web.oauth2.login
/**
* Marker annotation indicating that the annotated class is part of the OAuth 2.0 login security DSL.

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.oauth2.login
package org.springframework.security.config.annotation.web.oauth2.login
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.oauth2.login
package org.springframework.security.config.annotation.web.oauth2.login
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.oauth2.login
package org.springframework.security.config.annotation.web.oauth2.login
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.oauth2.resourceserver
package org.springframework.security.config.annotation.web.oauth2.resourceserver
import org.springframework.core.convert.converter.Converter
import org.springframework.security.authentication.AbstractAuthenticationToken

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.oauth2.resourceserver
package org.springframework.security.config.annotation.web.oauth2.resourceserver
/**
* Marker annotation indicating that the annotated class is part of the OAuth 2.0 resource server security DSL.

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.oauth2.resourceserver
package org.springframework.security.config.annotation.web.oauth2.resourceserver
import org.springframework.security.authentication.AuthenticationManager
import org.springframework.security.config.annotation.web.builders.HttpSecurity

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.session
package org.springframework.security.config.annotation.web.session
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.SessionManagementConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.session
package org.springframework.security.config.annotation.web.session
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configurers.SessionManagementConfigurer

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.session
package org.springframework.security.config.annotation.web.session
/**
* Marker annotation indicating that the annotated class is part of the session security DSL.

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.assertj.core.api.Assertions.assertThatThrownBy
import org.junit.jupiter.api.Test

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import io.mockk.every
import io.mockk.mockkObject

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.assertj.core.api.Assertions.assertThatExceptionOfType
import org.junit.jupiter.api.Test

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import io.mockk.every
import io.mockk.mockkObject

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import io.mockk.every
import io.mockk.mockkObject

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import io.mockk.every
import io.mockk.mockkObject

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import io.mockk.every
import io.mockk.mockkObject

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import io.mockk.every
import io.mockk.mockkObject

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import io.mockk.every
import io.mockk.mockkObject

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import io.mockk.every
import io.mockk.mockk

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import io.mockk.Called
import io.mockk.confirmVerified

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import io.mockk.mockkObject
import io.mockk.verify

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import io.mockk.every
import io.mockk.mockk

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import io.mockk.every
import io.mockk.justRun

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet
package org.springframework.security.config.annotation.web
import io.mockk.mockk
import java.security.cert.Certificate

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.headers
package org.springframework.security.config.annotation.web.headers
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
@ -23,7 +23,7 @@ import org.springframework.http.HttpHeaders
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
import org.springframework.security.config.web.servlet.invoke
import org.springframework.security.config.annotation.web.invoke
import org.springframework.security.config.test.SpringTestContext
import org.springframework.security.config.test.SpringTestContextExtension
import org.springframework.test.web.servlet.MockMvc

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.headers
package org.springframework.security.config.annotation.web.headers
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
@ -22,7 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
import org.springframework.security.config.web.servlet.invoke
import org.springframework.security.config.annotation.web.invoke
import org.springframework.security.config.test.SpringTestContext
import org.springframework.security.config.test.SpringTestContextExtension
import org.springframework.security.web.server.header.ContentSecurityPolicyServerHttpHeadersWriter

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.headers
package org.springframework.security.config.annotation.web.headers
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
@ -22,7 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
import org.springframework.security.config.web.servlet.invoke
import org.springframework.security.config.annotation.web.invoke
import org.springframework.security.config.test.SpringTestContext
import org.springframework.security.config.test.SpringTestContextExtension
import org.springframework.security.web.server.header.ContentTypeOptionsServerHttpHeadersWriter

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.headers
package org.springframework.security.config.annotation.web.headers
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
@ -22,7 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
import org.springframework.security.config.web.servlet.invoke
import org.springframework.security.config.annotation.web.invoke
import org.springframework.security.config.test.SpringTestContext
import org.springframework.security.config.test.SpringTestContextExtension
import org.springframework.security.web.header.writers.frameoptions.XFrameOptionsHeaderWriter

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.headers
package org.springframework.security.config.annotation.web.headers
import org.assertj.core.api.Assertions
import org.junit.jupiter.api.Test
@ -25,7 +25,7 @@ import org.springframework.security.config.annotation.web.configuration.EnableWe
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
import org.springframework.security.config.test.SpringTestContext
import org.springframework.security.config.test.SpringTestContextExtension
import org.springframework.security.config.web.servlet.invoke
import org.springframework.security.config.annotation.web.invoke
import org.springframework.test.web.servlet.MockMvc
import org.springframework.test.web.servlet.get

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.headers
package org.springframework.security.config.annotation.web.headers
import org.assertj.core.api.Assertions
import org.junit.jupiter.api.Test
@ -23,7 +23,7 @@ import org.springframework.beans.factory.annotation.Autowired
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
import org.springframework.security.config.web.servlet.invoke
import org.springframework.security.config.annotation.web.invoke
import org.springframework.security.config.test.SpringTestContext
import org.springframework.security.config.test.SpringTestContextExtension
import org.springframework.security.web.server.header.StrictTransportSecurityServerHttpHeadersWriter

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.headers
package org.springframework.security.config.annotation.web.headers
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
@ -22,7 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
import org.springframework.security.config.web.servlet.invoke
import org.springframework.security.config.annotation.web.invoke
import org.springframework.security.config.test.SpringTestContext
import org.springframework.security.config.test.SpringTestContextExtension
import org.springframework.security.web.header.writers.ReferrerPolicyHeaderWriter

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.headers
package org.springframework.security.config.annotation.web.headers
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
@ -22,7 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
import org.springframework.security.config.web.servlet.invoke
import org.springframework.security.config.annotation.web.invoke
import org.springframework.security.config.test.SpringTestContext
import org.springframework.security.config.test.SpringTestContextExtension
import org.springframework.security.web.server.header.XXssProtectionServerHttpHeadersWriter

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.oauth2.client
package org.springframework.security.config.annotation.web.oauth2.client
import io.mockk.every
import io.mockk.mockk
@ -31,7 +31,7 @@ import org.springframework.security.config.annotation.web.configuration.WebSecur
import org.springframework.security.config.oauth2.client.CommonOAuth2Provider
import org.springframework.security.config.test.SpringTestContext
import org.springframework.security.config.test.SpringTestContextExtension
import org.springframework.security.config.web.servlet.invoke
import org.springframework.security.config.annotation.web.invoke
import org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient
import org.springframework.security.oauth2.client.endpoint.OAuth2AuthorizationCodeGrantRequest
import org.springframework.security.oauth2.client.registration.ClientRegistrationRepository

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.oauth2.login
package org.springframework.security.config.annotation.web.oauth2.login
import io.mockk.every
import io.mockk.mockkObject
@ -31,7 +31,7 @@ import org.springframework.security.config.annotation.web.configuration.WebSecur
import org.springframework.security.config.oauth2.client.CommonOAuth2Provider
import org.springframework.security.config.test.SpringTestContext
import org.springframework.security.config.test.SpringTestContextExtension
import org.springframework.security.config.web.servlet.invoke
import org.springframework.security.config.annotation.web.invoke
import org.springframework.security.oauth2.client.registration.ClientRegistrationRepository
import org.springframework.security.oauth2.client.registration.InMemoryClientRegistrationRepository
import org.springframework.security.oauth2.client.web.AuthorizationRequestRepository

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.oauth2.login
package org.springframework.security.config.annotation.web.oauth2.login
import io.mockk.every
import io.mockk.mockkObject
@ -29,7 +29,7 @@ import org.springframework.security.config.annotation.web.configuration.WebSecur
import org.springframework.security.config.oauth2.client.CommonOAuth2Provider
import org.springframework.security.config.test.SpringTestContext
import org.springframework.security.config.test.SpringTestContextExtension
import org.springframework.security.config.web.servlet.invoke
import org.springframework.security.config.annotation.web.invoke
import org.springframework.security.core.authority.SimpleGrantedAuthority
import org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient
import org.springframework.security.oauth2.client.endpoint.OAuth2AuthorizationCodeGrantRequest

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.oauth2.login
package org.springframework.security.config.annotation.web.oauth2.login
import io.mockk.every
import io.mockk.mockkObject
@ -30,7 +30,7 @@ import org.springframework.security.config.annotation.web.configuration.WebSecur
import org.springframework.security.config.oauth2.client.CommonOAuth2Provider
import org.springframework.security.config.test.SpringTestContext
import org.springframework.security.config.test.SpringTestContextExtension
import org.springframework.security.config.web.servlet.invoke
import org.springframework.security.config.annotation.web.invoke
import org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient
import org.springframework.security.oauth2.client.endpoint.OAuth2AuthorizationCodeGrantRequest
import org.springframework.security.oauth2.client.registration.ClientRegistrationRepository

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.oauth2.login
package org.springframework.security.config.annotation.web.oauth2.login
import io.mockk.every
import io.mockk.mockk
@ -31,7 +31,7 @@ import org.springframework.security.config.annotation.web.configuration.WebSecur
import org.springframework.security.config.oauth2.client.CommonOAuth2Provider
import org.springframework.security.config.test.SpringTestContext
import org.springframework.security.config.test.SpringTestContextExtension
import org.springframework.security.config.web.servlet.invoke
import org.springframework.security.config.annotation.web.invoke
import org.springframework.security.core.authority.SimpleGrantedAuthority
import org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient
import org.springframework.security.oauth2.client.endpoint.OAuth2AuthorizationCodeGrantRequest

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.oauth2.resourceserver
package org.springframework.security.config.annotation.web.oauth2.resourceserver
import io.mockk.every
import io.mockk.mockk
@ -35,7 +35,7 @@ import org.springframework.security.config.annotation.web.configuration.EnableWe
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
import org.springframework.security.config.test.SpringTestContext
import org.springframework.security.config.test.SpringTestContextExtension
import org.springframework.security.config.web.servlet.invoke
import org.springframework.security.config.annotation.web.invoke
import org.springframework.security.core.Authentication
import org.springframework.security.oauth2.core.oidc.IdTokenClaimNames
import org.springframework.security.oauth2.jwt.Jwt

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.oauth2.resourceserver
package org.springframework.security.config.annotation.web.oauth2.resourceserver
import io.mockk.every
import io.mockk.mockkObject
@ -35,7 +35,7 @@ import org.springframework.security.config.annotation.web.configuration.EnableWe
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
import org.springframework.security.config.test.SpringTestContext
import org.springframework.security.config.test.SpringTestContextExtension
import org.springframework.security.config.web.servlet.invoke
import org.springframework.security.config.annotation.web.invoke
import org.springframework.security.core.Authentication
import org.springframework.security.oauth2.core.DefaultOAuth2AuthenticatedPrincipal
import org.springframework.security.oauth2.core.TestOAuth2AccessTokens

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.session
package org.springframework.security.config.annotation.web.session
import io.mockk.every
import io.mockk.mockkObject
@ -30,7 +30,7 @@ import org.springframework.security.config.annotation.web.configuration.EnableWe
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
import org.springframework.security.config.test.SpringTestContext
import org.springframework.security.config.test.SpringTestContextExtension
import org.springframework.security.config.web.servlet.invoke
import org.springframework.security.config.annotation.web.invoke
import org.springframework.security.core.session.SessionInformation
import org.springframework.security.core.session.SessionRegistry
import org.springframework.security.core.session.SessionRegistryImpl

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.servlet.session
package org.springframework.security.config.annotation.web.session
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
@ -28,7 +28,7 @@ import org.springframework.security.config.annotation.web.configuration.EnableWe
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
import org.springframework.security.core.userdetails.User
import org.springframework.security.core.userdetails.UserDetailsService
import org.springframework.security.config.web.servlet.invoke
import org.springframework.security.config.annotation.web.invoke
import org.springframework.security.config.test.SpringTestContext
import org.springframework.security.config.test.SpringTestContextExtension
import org.springframework.security.provisioning.InMemoryUserDetailsManager