Class ChannelSecurityConfigurer<H extends HttpSecurityBuilder<H>>
java.lang.Object
org.springframework.security.config.annotation.SecurityConfigurerAdapter<DefaultSecurityFilterChain,B>
org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer<ChannelSecurityConfigurer<H>,H>
org.springframework.security.config.annotation.web.configurers.ChannelSecurityConfigurer<H>
- Type Parameters:
H- the type ofHttpSecurityBuilderthat is being configured
- All Implemented Interfaces:
SecurityConfigurer<DefaultSecurityFilterChain,H>
@Deprecated
public final class ChannelSecurityConfigurer<H extends HttpSecurityBuilder<H>>
extends AbstractHttpConfigurer<ChannelSecurityConfigurer<H>,H>
Deprecated.
Adds channel security (i.e. requires HTTPS or HTTP) to an application. In order for
ChannelSecurityConfigurer to be useful, at least one RequestMatcher
should be mapped to HTTP or HTTPS.
By default an InsecureChannelProcessor and a SecureChannelProcessor
will be registered.
Security Filters
The following Filters are populatedShared Objects Created
No shared objects are created.Shared Objects Used
The following shared objects are used:PortMapperis used to create the defaultChannelProcessorinstances
- Since:
- 3.2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classDeprecated.no replacement plannedclassDeprecated.no replacement planned -
Constructor Summary
ConstructorsConstructorDescriptionChannelSecurityConfigurer(org.springframework.context.ApplicationContext context) Deprecated.Creates a new instance -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Configure theSecurityBuilderby setting the necessary properties on theSecurityBuilder.Deprecated.Methods inherited from class org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer
disable, getSecurityContextHolderStrategy, withObjectPostProcessor, withObjectPostProcessorMethods inherited from class org.springframework.security.config.annotation.SecurityConfigurerAdapter
addObjectPostProcessor, addObjectPostProcessor, and, getBuilder, init, postProcess, setBuilder
-
Constructor Details
-
ChannelSecurityConfigurer
public ChannelSecurityConfigurer(org.springframework.context.ApplicationContext context) Deprecated.Creates a new instance- See Also:
-
-
Method Details
-
getRegistry
Deprecated. -
configure
Deprecated.Description copied from interface:SecurityConfigurerConfigure theSecurityBuilderby setting the necessary properties on theSecurityBuilder.- Specified by:
configurein interfaceSecurityConfigurer<DefaultSecurityFilterChain,H extends HttpSecurityBuilder<H>> - Overrides:
configurein classSecurityConfigurerAdapter<DefaultSecurityFilterChain,H extends HttpSecurityBuilder<H>>
-
HttpsRedirectConfigurerinstead