Example usage for Java org.springframework.security.config.annotation.web.builders HttpSecurity fields, constructors, methods, implement or subclass
The text is from its open source code.
RequestMatcher | requestMatcher |
HttpSecurity(ObjectPostProcessor Creates a new instance |
HttpSecurity | addFilter(Filter filter) |
HttpSecurity | addFilterAfter(Filter filter, Class extends Filter> afterFilter) |
HttpSecurity | addFilterBefore(Filter filter, Class extends Filter> beforeFilter) |
AnonymousConfigurer | anonymous() Allows configuring how an anonymous user is represented. |
HttpSecurity | antMatcher(String antPattern) Allows configuring the HttpSecurity to only be invoked when matching the provided ant pattern. |
HttpSecurity | authenticationProvider(AuthenticationProvider authenticationProvider) |
ExpressionUrlAuthorizationConfigurer | authorizeRequests() Allows restricting access based upon the HttpServletRequest using Example ConfigurationsThe most basic example is to configure all URLs to require the role "ROLE_USER". |
CsrfConfigurer | csrf() Adds CSRF support. |
ExceptionHandlingConfigurer | exceptionHandling() Allows configuring exception handling. |
FormLoginConfigurer | formLogin() Specifies to support form based authentication. |
C | getConfigurer(Class Gets the SecurityConfigurer by its class name or null if not found. |
C | getSharedObject(Class Gets a shared Object. |
HeadersConfigurer | headers() Adds the Security headers to the response. |
HttpBasicConfigurer | httpBasic() Configures HTTP Basic authentication. |
LogoutConfigurer | logout() Provides logout support. |
OpenIDLoginConfigurer | openidLogin() Allows configuring OpenID based authentication. |
HttpSecurity | regexMatcher(String pattern) Allows configuring the HttpSecurity to only be invoked when matching the provided regex pattern. |
RememberMeConfigurer | rememberMe() Allows configuring of Remember Me authentication. |
HttpSecurity | requestCache(Customizer Allows configuring the Request Cache. |
RequestMatcherConfigurer | requestMatchers() Allows specifying which HttpServletRequest instances this HttpSecurity will be invoked on. |
ChannelSecurityConfigurer | requiresChannel() Configures channel security. |
SessionManagementConfigurer | sessionManagement() Allows configuring of Session Management. |
HttpSecurity | userDetailsService(UserDetailsService userDetailsService) |