Package io.meeds.spring.web.security
Class WebSecurityConfiguration
java.lang.Object
io.meeds.spring.web.security.WebSecurityConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.web.context.ServletContextAware
@Configuration("webSecurityConfiguration")
@EnableWebSecurity
@EnableMethodSecurity(prePostEnabled=true,
securedEnabled=true,
jsr250Enabled=true)
public class WebSecurityConfiguration
extends Object
implements org.springframework.web.context.ServletContextAware
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.web.access.AccessDeniedHandlerorg.springframework.security.web.SecurityFilterChainfilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, PortalAuthenticationManager authenticationProvider, org.springframework.security.web.util.matcher.RequestMatcher restRequestMatcher, org.springframework.security.web.util.matcher.RequestMatcher staticResourcesRequestMatcher, org.springframework.security.web.access.AccessDeniedHandler accessDeniedHandler, org.springframework.security.authorization.AuthorizationManager<org.springframework.security.web.access.intercept.RequestAuthorizationContext> requestAuthorizationManager) static GrantedAuthorityDefaultsorg.springframework.security.authorization.AuthorizationManager<org.springframework.security.web.access.intercept.RequestAuthorizationContext> org.springframework.security.web.util.matcher.RequestMatcherorg.springframework.security.web.util.matcher.RequestMatcherMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.context.ServletContextAware
setServletContext
-
Constructor Details
-
WebSecurityConfiguration
public WebSecurityConfiguration()
-
-
Method Details
-
grantedAuthorityDefaults
-
filterChain
@Bean public org.springframework.security.web.SecurityFilterChain filterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, PortalAuthenticationManager authenticationProvider, @Qualifier("restRequestMatcher") org.springframework.security.web.util.matcher.RequestMatcher restRequestMatcher, @Qualifier("staticResourcesRequestMatcher") org.springframework.security.web.util.matcher.RequestMatcher staticResourcesRequestMatcher, @Qualifier("accessDeniedHandler") org.springframework.security.web.access.AccessDeniedHandler accessDeniedHandler, @Qualifier("requestAuthorizationManager") org.springframework.security.authorization.AuthorizationManager<org.springframework.security.web.access.intercept.RequestAuthorizationContext> requestAuthorizationManager) throws Exception - Throws:
Exception
-
restRequestMatcher
@Bean("restRequestMatcher") public org.springframework.security.web.util.matcher.RequestMatcher restRequestMatcher() -
staticResourcesRequestMatcher
@Bean("staticResourcesRequestMatcher") public org.springframework.security.web.util.matcher.RequestMatcher staticResourcesRequestMatcher() -
accessDeniedHandler
@Bean("accessDeniedHandler") public org.springframework.security.web.access.AccessDeniedHandler accessDeniedHandler() -
requestAuthorizationManager
@Bean("requestAuthorizationManager") public org.springframework.security.authorization.AuthorizationManager<org.springframework.security.web.access.intercept.RequestAuthorizationContext> requestAuthorizationManager()
-