Resolve package tangles in Kotlin server package

This commit is contained in:
Eleftheria Stein 2020-05-21 10:19:34 -04:00 committed by Rob Winch
parent 0a42aa26c8
commit bc272ddf73
20 changed files with 17 additions and 58 deletions

View File

@ -14,10 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.server.headers
import org.springframework.security.config.web.server.ServerHttpSecurity
import org.springframework.security.config.web.server.ServerSecurityMarker
package org.springframework.security.config.web.server
/**
* A Kotlin DSL to configure the [ServerHttpSecurity] cache control headers using

View File

@ -14,10 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.server.headers
import org.springframework.security.config.web.server.ServerHttpSecurity
import org.springframework.security.config.web.server.ServerSecurityMarker
package org.springframework.security.config.web.server
/**
* A Kotlin DSL to configure the [ServerHttpSecurity] Content-Security-Policy header using

View File

@ -14,10 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.server.headers
import org.springframework.security.config.web.server.ServerHttpSecurity
import org.springframework.security.config.web.server.ServerSecurityMarker
package org.springframework.security.config.web.server
/**
* A Kotlin DSL to configure the [ServerHttpSecurity] the content type options header

View File

@ -14,10 +14,8 @@
* limitations under the License.
*/
package org.springframework.security.config.web.server.headers
package org.springframework.security.config.web.server
import org.springframework.security.config.web.server.ServerHttpSecurity
import org.springframework.security.config.web.server.ServerSecurityMarker
import org.springframework.security.web.server.header.XFrameOptionsServerHttpHeadersWriter
/**

View File

@ -16,7 +16,6 @@
package org.springframework.security.config.web.server
import org.springframework.security.config.web.server.headers.*
import org.springframework.security.web.server.header.*
/**

View File

@ -14,10 +14,8 @@
* limitations under the License.
*/
package org.springframework.security.config.web.server.headers
package org.springframework.security.config.web.server
import org.springframework.security.config.web.server.ServerHttpSecurity
import org.springframework.security.config.web.server.ServerSecurityMarker
import java.time.Duration
/**

View File

@ -14,13 +14,11 @@
* limitations under the License.
*/
package org.springframework.security.config.web.server.oauth2.resourceserver
package org.springframework.security.config.web.server
import org.springframework.core.convert.converter.Converter
import org.springframework.security.authentication.AbstractAuthenticationToken
import org.springframework.security.authentication.ReactiveAuthenticationManager
import org.springframework.security.config.web.server.ServerHttpSecurity
import org.springframework.security.config.web.server.ServerSecurityMarker
import org.springframework.security.core.Authentication
import org.springframework.security.oauth2.jwt.Jwt
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoder

View File

@ -17,8 +17,6 @@
package org.springframework.security.config.web.server
import org.springframework.security.authentication.ReactiveAuthenticationManagerResolver
import org.springframework.security.config.web.server.oauth2.resourceserver.ServerJwtDsl
import org.springframework.security.config.web.server.oauth2.resourceserver.ServerOpaqueTokenDsl
import org.springframework.security.web.server.ServerAuthenticationEntryPoint
import org.springframework.security.web.server.authentication.ServerAuthenticationConverter
import org.springframework.security.web.server.authorization.ServerAccessDeniedHandler

View File

@ -14,10 +14,8 @@
* limitations under the License.
*/
package org.springframework.security.config.web.server.oauth2.resourceserver
package org.springframework.security.config.web.server
import org.springframework.security.config.web.server.ServerHttpSecurity
import org.springframework.security.config.web.server.ServerSecurityMarker
import org.springframework.security.oauth2.server.resource.introspection.ReactiveOpaqueTokenIntrospector
/**

View File

@ -14,10 +14,8 @@
* limitations under the License.
*/
package org.springframework.security.config.web.server.headers
package org.springframework.security.config.web.server
import org.springframework.security.config.web.server.ServerHttpSecurity
import org.springframework.security.config.web.server.ServerSecurityMarker
import org.springframework.security.web.server.header.ReferrerPolicyServerHttpHeadersWriter
/**

View File

@ -14,10 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.server.headers
import org.springframework.security.config.web.server.ServerHttpSecurity
import org.springframework.security.config.web.server.ServerSecurityMarker
package org.springframework.security.config.web.server
/**
* A Kotlin DSL to configure the [ServerHttpSecurity] XSS protection header using

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.server.headers
package org.springframework.security.config.web.server
import org.junit.Rule
import org.junit.Test
@ -23,9 +23,7 @@ import org.springframework.context.ApplicationContext
import org.springframework.context.annotation.Bean
import org.springframework.http.HttpHeaders
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
import org.springframework.security.config.web.server.invoke
import org.springframework.security.config.test.SpringTestRule
import org.springframework.security.config.web.server.ServerHttpSecurity
import org.springframework.security.web.server.SecurityWebFilterChain
import org.springframework.test.web.reactive.server.WebTestClient
import org.springframework.web.reactive.config.EnableWebFlux

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.server.headers
package org.springframework.security.config.web.server
import org.junit.Rule
import org.junit.Test
@ -22,9 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.ApplicationContext
import org.springframework.context.annotation.Bean
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
import org.springframework.security.config.web.server.invoke
import org.springframework.security.config.test.SpringTestRule
import org.springframework.security.config.web.server.ServerHttpSecurity
import org.springframework.security.web.server.SecurityWebFilterChain
import org.springframework.security.web.server.header.ContentSecurityPolicyServerHttpHeadersWriter
import org.springframework.test.web.reactive.server.WebTestClient

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.server.headers
package org.springframework.security.config.web.server
import org.junit.Rule
import org.junit.Test
@ -22,9 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.ApplicationContext
import org.springframework.context.annotation.Bean
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
import org.springframework.security.config.web.server.invoke
import org.springframework.security.config.test.SpringTestRule
import org.springframework.security.config.web.server.ServerHttpSecurity
import org.springframework.security.web.server.SecurityWebFilterChain
import org.springframework.security.web.server.header.ContentTypeOptionsServerHttpHeadersWriter
import org.springframework.test.web.reactive.server.WebTestClient

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.server.headers
package org.springframework.security.config.web.server
import org.junit.Rule
import org.junit.Test
@ -22,9 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.ApplicationContext
import org.springframework.context.annotation.Bean
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
import org.springframework.security.config.web.server.invoke
import org.springframework.security.config.test.SpringTestRule
import org.springframework.security.config.web.server.ServerHttpSecurity
import org.springframework.security.web.header.writers.frameoptions.XFrameOptionsHeaderWriter
import org.springframework.security.web.server.SecurityWebFilterChain
import org.springframework.security.web.server.header.XFrameOptionsServerHttpHeadersWriter

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.server.oauth2.resourceserver
package org.springframework.security.config.web.server
import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.MockWebServer
@ -31,8 +31,6 @@ import org.springframework.security.authentication.AbstractAuthenticationToken
import org.springframework.security.authentication.TestingAuthenticationToken
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
import org.springframework.security.config.test.SpringTestRule
import org.springframework.security.config.web.server.ServerHttpSecurity
import org.springframework.security.config.web.server.invoke
import org.springframework.security.oauth2.core.oidc.IdTokenClaimNames
import org.springframework.security.oauth2.jwt.Jwt
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoder

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.server.oauth2.resourceserver
package org.springframework.security.config.web.server
import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.MockWebServer
@ -27,8 +27,6 @@ import org.springframework.context.annotation.Bean
import org.springframework.http.HttpHeaders
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
import org.springframework.security.config.test.SpringTestRule
import org.springframework.security.config.web.server.ServerHttpSecurity
import org.springframework.security.config.web.server.invoke
import org.springframework.security.oauth2.server.resource.introspection.NimbusReactiveOpaqueTokenIntrospector
import org.springframework.security.oauth2.server.resource.introspection.ReactiveOpaqueTokenIntrospector
import org.springframework.security.web.server.SecurityWebFilterChain

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.server.headers
package org.springframework.security.config.web.server
import org.junit.Rule
import org.junit.Test
@ -22,9 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.ApplicationContext
import org.springframework.context.annotation.Bean
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
import org.springframework.security.config.web.server.invoke
import org.springframework.security.config.test.SpringTestRule
import org.springframework.security.config.web.server.ServerHttpSecurity
import org.springframework.security.web.header.writers.ReferrerPolicyHeaderWriter
import org.springframework.security.web.server.SecurityWebFilterChain
import org.springframework.security.web.server.header.ReferrerPolicyServerHttpHeadersWriter

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.security.config.web.server.headers
package org.springframework.security.config.web.server
import org.junit.Rule
import org.junit.Test
@ -22,9 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.ApplicationContext
import org.springframework.context.annotation.Bean
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
import org.springframework.security.config.web.server.invoke
import org.springframework.security.config.test.SpringTestRule
import org.springframework.security.config.web.server.ServerHttpSecurity
import org.springframework.security.web.server.SecurityWebFilterChain
import org.springframework.security.web.server.header.XXssProtectionServerHttpHeadersWriter
import org.springframework.test.web.reactive.server.WebTestClient