|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.config.annotation.SecurityConfigurerAdapter<O,B> org.springframework.security.config.annotation.web.AbstractRequestMatcherConfigurer<B,C,O> org.springframework.security.config.annotation.web.configurers.AbstractRequestMatcherMappingConfigurer<H,ChannelSecurityConfigurer.RequiresChannelUrl,DefaultSecurityFilterChain> org.springframework.security.config.annotation.web.configurers.ChannelSecurityConfigurer<H>
H
- the type of HttpSecurityBuilder
that is being configuredpublic final class ChannelSecurityConfigurer<H extends HttpSecurityBuilder<H>>
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.
PortMapper
is used to create the default ChannelProcessor
instances
Nested Class Summary | |
---|---|
class |
ChannelSecurityConfigurer.RequiresChannelUrl
|
Constructor Summary | |
---|---|
ChannelSecurityConfigurer()
Creates a new instance |
Method Summary | |
---|---|
protected ChannelSecurityConfigurer.RequiresChannelUrl |
chainRequestMatchersInternal(List<RequestMatcher> requestMatchers)
Subclasses should implement this method for returning the object that is chained to the creation of the RequestMatcher instances. |
ChannelSecurityConfigurer<H> |
channelProcessors(List<ChannelProcessor> channelProcessors)
Sets the ChannelProcessor instances to use in ChannelDecisionManagerImpl |
void |
configure(H http)
Configure the SecurityBuilder by setting the necessary properties
on the SecurityBuilder . |
ChannelSecurityConfigurer<H> |
withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)
Adds an ObjectPostProcessor for this class. |
Methods inherited from class org.springframework.security.config.annotation.web.configurers.AbstractRequestMatcherMappingConfigurer |
---|
chainRequestMatchers |
Methods inherited from class org.springframework.security.config.annotation.web.AbstractRequestMatcherConfigurer |
---|
antMatchers, antMatchers, anyRequest, regexMatchers, regexMatchers, requestMatchers |
Methods inherited from class org.springframework.security.config.annotation.SecurityConfigurerAdapter |
---|
addObjectPostProcessor, and, getBuilder, init, postProcess, setBuilder |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChannelSecurityConfigurer()
HttpSecurity.requiresChannel()
Method Detail |
---|
public void configure(H http) throws Exception
SecurityConfigurer
SecurityBuilder
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>>
Exception
public ChannelSecurityConfigurer<H> withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)
ObjectPostProcessor
for this class.
objectPostProcessor
-
ChannelSecurityConfigurer
for further customizationspublic ChannelSecurityConfigurer<H> channelProcessors(List<ChannelProcessor> channelProcessors)
ChannelProcessor
instances to use in ChannelDecisionManagerImpl
channelProcessors
-
protected ChannelSecurityConfigurer.RequiresChannelUrl chainRequestMatchersInternal(List<RequestMatcher> requestMatchers)
AbstractRequestMatcherMappingConfigurer
RequestMatcher
instances.
chainRequestMatchersInternal
in class AbstractRequestMatcherMappingConfigurer<H extends HttpSecurityBuilder<H>,ChannelSecurityConfigurer.RequiresChannelUrl,DefaultSecurityFilterChain>
requestMatchers
- the RequestMatcher
instances that were created
RequestMatcher
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |