Skip to content

Commit

Permalink
Deprecate ChannelSecurityConfigurer
Browse files Browse the repository at this point in the history
Closes gh-16680
  • Loading branch information
jzheaux committed Feb 28, 2025
1 parent be23268 commit 72070cd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3137,7 +3137,9 @@ public ChannelSecurityConfigurer<HttpSecurity>.ChannelRequestMatcherRegistry req
* the {@link ChannelSecurityConfigurer.ChannelRequestMatcherRegistry}
* @return the {@link HttpSecurity} for further customizations
* @throws Exception
* @deprecated Use {@link #redirectToHttps}
*/
@Deprecated
public HttpSecurity requiresChannel(
Customizer<ChannelSecurityConfigurer<HttpSecurity>.ChannelRequestMatcherRegistry> requiresChannelCustomizer)
throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@
* @author Rob Winch
* @author Onur Kagan Ozcan
* @since 3.2
* @deprecated please use {@link HttpsRedirectConfigurer} instead
*/
@Deprecated
public final class ChannelSecurityConfigurer<H extends HttpSecurityBuilder<H>>
extends AbstractHttpConfigurer<ChannelSecurityConfigurer<H>, H> {

Expand Down Expand Up @@ -147,6 +149,10 @@ private ChannelRequestMatcherRegistry addAttribute(String attribute, List<? exte
return this.REGISTRY;
}

/**
* @deprecated no replacement planned
*/
@Deprecated
public final class ChannelRequestMatcherRegistry
extends AbstractConfigAttributeRequestMatcherRegistry<RequiresChannelUrl> {

Expand Down Expand Up @@ -215,6 +221,10 @@ public H and() {

}

/**
* @deprecated no replacement planned
*/
@Deprecated
public class RequiresChannelUrl {

protected List<? extends RequestMatcher> requestMatchers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,9 @@ class HttpSecurityDsl(private val http: HttpSecurity, private val init: HttpSecu
* @param requiresChannelConfiguration custom configuration that specifies
* channel security
* @see [RequiresChannelDsl]
* @deprecated please use [redirectToHttps] instead
*/
@Deprecated(message="since 6.5 use redirectToHttps instead")
fun requiresChannel(requiresChannelConfiguration: RequiresChannelDsl.() -> Unit) {
val requiresChannelCustomizer = RequiresChannelDsl().apply(requiresChannelConfiguration).get()
this.http.requiresChannel(requiresChannelCustomizer)
Expand Down

0 comments on commit 72070cd

Please sign in to comment.