Class ChannelSecurityConfigurer.ChannelRequestMatcherRegistry
- java.lang.Object
-
- org.springframework.security.config.annotation.web.AbstractRequestMatcherRegistry<C>
-
- org.springframework.security.config.annotation.web.configurers.AbstractConfigAttributeRequestMatcherRegistry<ChannelSecurityConfigurer.RequiresChannelUrl>
-
- org.springframework.security.config.annotation.web.configurers.ChannelSecurityConfigurer.ChannelRequestMatcherRegistry
-
- Enclosing class:
- ChannelSecurityConfigurer<H extends HttpSecurityBuilder<H>>
public final class ChannelSecurityConfigurer.ChannelRequestMatcherRegistry extends AbstractConfigAttributeRequestMatcherRegistry<ChannelSecurityConfigurer.RequiresChannelUrl>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Hand()Return theSecurityBuilderwhen done using theSecurityConfigurer.protected ChannelSecurityConfigurer.RequiresChannelUrlchainRequestMatchersInternal(java.util.List<org.springframework.security.web.util.matcher.RequestMatcher> requestMatchers)Subclasses should implement this method for returning the object that is chained to the creation of theRequestMatcherinstances.ChannelSecurityConfigurer.ChannelRequestMatcherRegistrychannelProcessors(java.util.List<org.springframework.security.web.access.channel.ChannelProcessor> channelProcessors)Sets theChannelProcessorinstances to use inChannelDecisionManagerImplChannelSecurityConfigurer.MvcMatchersRequiresChannelUrlmvcMatchers(java.lang.String... patterns)Deprecated.ChannelSecurityConfigurer.MvcMatchersRequiresChannelUrlmvcMatchers(org.springframework.http.HttpMethod method, java.lang.String... mvcPatterns)Deprecated.ChannelSecurityConfigurer.ChannelRequestMatcherRegistryredirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy)Sets theRedirectStrategyinstances to use inRetryWithHttpEntryPointandRetryWithHttpsEntryPointChannelSecurityConfigurer.ChannelRequestMatcherRegistrywithObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)Adds anObjectPostProcessorfor this class.-
Methods inherited from class org.springframework.security.config.annotation.web.configurers.AbstractConfigAttributeRequestMatcherRegistry
chainRequestMatchers
-
Methods inherited from class org.springframework.security.config.annotation.web.AbstractRequestMatcherRegistry
antMatchers, antMatchers, antMatchers, anyRequest, createMvcMatchers, dispatcherTypeMatchers, dispatcherTypeMatchers, getApplicationContext, regexMatchers, regexMatchers, requestMatchers, requestMatchers, requestMatchers, requestMatchers, setApplicationContext
-
-
-
-
Method Detail
-
mvcMatchers
@Deprecated public ChannelSecurityConfigurer.MvcMatchersRequiresChannelUrl mvcMatchers(org.springframework.http.HttpMethod method, java.lang.String... mvcPatterns)
Deprecated.Description copied from class:AbstractRequestMatcherRegistryMaps an
MvcRequestMatcherthat also specifies a specificHttpMethodto match on. This matcher will use the same rules that Spring MVC uses for matching. For example, often times a mapping of the path "/path" will match on "/path", "/path/", "/path.html", etc.If the current request will not be processed by Spring MVC, a reasonable default using the pattern as a ant pattern will be used.
- Specified by:
mvcMatchersin classAbstractRequestMatcherRegistry<ChannelSecurityConfigurer.RequiresChannelUrl>- Parameters:
method- the HTTP method to match onmvcPatterns- the patterns to match on. The rules for matching are defined by Spring MVC- Returns:
- the object that is chained after creating the
RequestMatcher.
-
mvcMatchers
@Deprecated public ChannelSecurityConfigurer.MvcMatchersRequiresChannelUrl mvcMatchers(java.lang.String... patterns)
Deprecated.Description copied from class:AbstractRequestMatcherRegistryMaps an
MvcRequestMatcherthat does not care whichHttpMethodis used. This matcher will use the same rules that Spring MVC uses for matching. For example, often times a mapping of the path "/path" will match on "/path", "/path/", "/path.html", etc.If the current request will not be processed by Spring MVC, a reasonable default using the pattern as a ant pattern will be used.
- Specified by:
mvcMatchersin classAbstractRequestMatcherRegistry<ChannelSecurityConfigurer.RequiresChannelUrl>- Parameters:
patterns- the patterns to match on. The rules for matching are defined by Spring MVC- Returns:
- the object that is chained after creating the
RequestMatcher.
-
chainRequestMatchersInternal
protected ChannelSecurityConfigurer.RequiresChannelUrl chainRequestMatchersInternal(java.util.List<org.springframework.security.web.util.matcher.RequestMatcher> requestMatchers)
Description copied from class:AbstractConfigAttributeRequestMatcherRegistrySubclasses should implement this method for returning the object that is chained to the creation of theRequestMatcherinstances.- Specified by:
chainRequestMatchersInternalin classAbstractConfigAttributeRequestMatcherRegistry<ChannelSecurityConfigurer.RequiresChannelUrl>- Parameters:
requestMatchers- theRequestMatcherinstances that were created- Returns:
- the chained Object for the subclass which allows association of something
else to the
RequestMatcher
-
withObjectPostProcessor
public ChannelSecurityConfigurer.ChannelRequestMatcherRegistry withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)
Adds anObjectPostProcessorfor this class.- Parameters:
objectPostProcessor-- Returns:
- the
ChannelSecurityConfigurerfor further customizations
-
channelProcessors
public ChannelSecurityConfigurer.ChannelRequestMatcherRegistry channelProcessors(java.util.List<org.springframework.security.web.access.channel.ChannelProcessor> channelProcessors)
Sets theChannelProcessorinstances to use inChannelDecisionManagerImpl- Parameters:
channelProcessors-- Returns:
- the
ChannelSecurityConfigurerfor further customizations
-
redirectStrategy
public ChannelSecurityConfigurer.ChannelRequestMatcherRegistry redirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy)
Sets theRedirectStrategyinstances to use inRetryWithHttpEntryPointandRetryWithHttpsEntryPoint- Parameters:
redirectStrategy-- Returns:
- the
ChannelSecurityConfigurerfor further customizations
-
and
public H and()
Return theSecurityBuilderwhen done using theSecurityConfigurer. This is useful for method chaining.- Returns:
- the type of
HttpSecurityBuilderthat is being configured
-
-