Class ChannelSecurityConfigurer<H extends HttpSecurityBuilder<H>>
- java.lang.Object
-
- org.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.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<org.springframework.security.web.DefaultSecurityFilterChain,H>
public final class ChannelSecurityConfigurer<H extends HttpSecurityBuilder<H>> extends AbstractHttpConfigurer<ChannelSecurityConfigurer<H>,H>
Adds channel security (i.e. requires HTTPS or HTTP) to an application. In order forChannelSecurityConfigurerto be useful, at least oneRequestMatchershould be mapped to HTTP or HTTPS.By default an
InsecureChannelProcessorand aSecureChannelProcessorwill be registered.Security Filters
The following Filters are populatedChannelProcessingFilter
Shared 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 Classes Modifier and Type Class Description classChannelSecurityConfigurer.ChannelRequestMatcherRegistryclassChannelSecurityConfigurer.MvcMatchersRequiresChannelUrlclassChannelSecurityConfigurer.RequiresChannelUrl
-
Constructor Summary
Constructors Constructor Description ChannelSecurityConfigurer(org.springframework.context.ApplicationContext context)Creates a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(H http)Configure theSecurityBuilderby setting the necessary properties on theSecurityBuilder.ChannelSecurityConfigurer.ChannelRequestMatcherRegistrygetRegistry()-
Methods inherited from class org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer
disable, withObjectPostProcessor
-
Methods inherited from class org.springframework.security.config.annotation.SecurityConfigurerAdapter
addObjectPostProcessor, and, getBuilder, init, postProcess, setBuilder
-
-
-
-
Constructor Detail
-
ChannelSecurityConfigurer
public ChannelSecurityConfigurer(org.springframework.context.ApplicationContext context)
Creates a new instance- See Also:
HttpSecurity.requiresChannel()
-
-
Method Detail
-
getRegistry
public ChannelSecurityConfigurer.ChannelRequestMatcherRegistry getRegistry()
-
configure
public void configure(H http)
Description copied from interface:SecurityConfigurerConfigure theSecurityBuilderby setting the necessary properties on theSecurityBuilder.- Specified by:
configurein interfaceSecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,H extends HttpSecurityBuilder<H>>- Overrides:
configurein classSecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,H extends HttpSecurityBuilder<H>>
-
-