Class AuthorizeHttpRequestsConfigurer<H extends HttpSecurityBuilder<H>>
- java.lang.Object
-
- org.springframework.security.config.annotation.SecurityConfigurerAdapter<DefaultSecurityFilterChain,B>
-
- org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer<AuthorizeHttpRequestsConfigurer<H>,H>
-
- org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer<H>
-
- Type Parameters:
H
- the type ofHttpSecurityBuilder
that is being configured.
- All Implemented Interfaces:
SecurityConfigurer<DefaultSecurityFilterChain,H>
public final class AuthorizeHttpRequestsConfigurer<H extends HttpSecurityBuilder<H>> extends AbstractHttpConfigurer<AuthorizeHttpRequestsConfigurer<H>,H>
Adds a URL based authorization usingAuthorizationManager
.- Since:
- 5.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry
Registry for mapping aRequestMatcher
to anAuthorizationManager
.class
AuthorizeHttpRequestsConfigurer.AuthorizedUrl
An object that allows configuring theAuthorizationManager
forRequestMatcher
s.class
AuthorizeHttpRequestsConfigurer.MvcMatchersAuthorizedUrl
AnAuthorizeHttpRequestsConfigurer.AuthorizedUrl
that allows optionally configuring theMvcRequestMatcher.setServletPath(String)
.
-
Constructor Summary
Constructors Constructor Description AuthorizeHttpRequestsConfigurer(org.springframework.context.ApplicationContext context)
Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(H http)
Configure theSecurityBuilder
by setting the necessary properties on theSecurityBuilder
.AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry
getRegistry()
TheAuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry
is what users will interact with after applying theAuthorizeHttpRequestsConfigurer
.-
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
-
-
-
-
Method Detail
-
getRegistry
public AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry getRegistry()
TheAuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry
is what users will interact with after applying theAuthorizeHttpRequestsConfigurer
.- Returns:
- the
AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry
for further customizations
-
configure
public void configure(H http)
Description copied from interface:SecurityConfigurer
Configure theSecurityBuilder
by setting the necessary properties on theSecurityBuilder
.- Specified by:
configure
in interfaceSecurityConfigurer<DefaultSecurityFilterChain,H extends HttpSecurityBuilder<H>>
- Overrides:
configure
in classSecurityConfigurerAdapter<DefaultSecurityFilterChain,H extends HttpSecurityBuilder<H>>
-
-