H
- the type of HttpSecurityBuilder
that is being configuredpublic final class ExpressionUrlAuthorizationConfigurer<H extends HttpSecurityBuilder<H>> extends AbstractHttpConfigurer<C,H>
RequestMapping
needs to be mapped
to ConfigAttribute
's for this SecurityContextConfigurer
to have
meaning. SecurityConfigurer
's to
customize:
AuthenticationTrustResolver
is optionally used to populate the
DefaultWebSecurityExpressionHandler
HttpSecurity.authorizeRequests()
Modifier and Type | Class and Description |
---|---|
class |
ExpressionUrlAuthorizationConfigurer.AuthorizedUrl |
class |
ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry |
class |
ExpressionUrlAuthorizationConfigurer.MvcMatchersAuthorizedUrl
An
ExpressionUrlAuthorizationConfigurer.AuthorizedUrl that allows optionally configuring the
MvcRequestMatcher.setMethod(HttpMethod) |
Constructor and Description |
---|
ExpressionUrlAuthorizationConfigurer(org.springframework.context.ApplicationContext context)
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 . |
ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry |
getRegistry() |
disable, withObjectPostProcessor
addObjectPostProcessor, and, getBuilder, init, postProcess, setBuilder
public ExpressionUrlAuthorizationConfigurer(org.springframework.context.ApplicationContext context)
HttpSecurity.authorizeRequests()
public ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry getRegistry()
public void configure(H http) throws java.lang.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>>
java.lang.Exception