H - the type of HttpSecurityBuilder that is being configuredpublic final class ChannelSecurityConfigurer<H extends HttpSecurityBuilder<H>> extends SecurityConfigurerAdapter<DefaultSecurityFilterChain,B>
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.
PortMapper is used to create the default ChannelProcessor instances| Modifier and Type | Class and Description |
|---|---|
class |
ChannelSecurityConfigurer.ChannelRequestMatcherRegistry |
class |
ChannelSecurityConfigurer.RequiresChannelUrl |
| Constructor and Description |
|---|
ChannelSecurityConfigurer()
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(H http)
Configure the
SecurityBuilder by setting the necessary properties
on the SecurityBuilder. |
B |
disable()
Disables the
AbstractHttpConfigurer by removing it. |
ChannelSecurityConfigurer.ChannelRequestMatcherRegistry |
getRegistry() |
T |
withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor) |
addObjectPostProcessor, and, getBuilder, init, postProcess, setBuilderpublic ChannelSecurityConfigurer()
HttpSecurity.requiresChannel()public ChannelSecurityConfigurer.ChannelRequestMatcherRegistry getRegistry()
public void configure(H http) throws Exception
SecurityConfigurerSecurityBuilder by setting the necessary properties
on the SecurityBuilder.configure in interface SecurityConfigurer<DefaultSecurityFilterChain,H extends HttpSecurityBuilder<H>>configure in class SecurityConfigurerAdapter<DefaultSecurityFilterChain,H extends HttpSecurityBuilder<H>>Exceptionpublic B disable()
AbstractHttpConfigurer by removing it. After doing
so a fresh version of the configuration can be applied.HttpSecurityBuilder for additional customizationspublic T withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)