Class WebSecurityConfiguration

java.lang.Object
com.cumulocity.microservice.security.configuration.WebSecurityConfiguration

@Order(99) @Configuration(proxyBeanMethods=false) @EnableWebSecurity @Import({CumulocityOAuthConfiguration.class,PrePostFiltersConfiguration.class}) public class WebSecurityConfiguration extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configureAuthenticationManager(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)
     
    static org.springframework.security.crypto.password.PasswordEncoder
     
    org.springframework.security.web.SecurityFilterChain
    securityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, org.springframework.web.servlet.handler.HandlerMappingIntrospector introspector, org.springframework.boot.autoconfigure.web.ServerProperties serverProperties, CumulocityOAuthMicroserviceFilter cumulocityOAuthMicroserviceFilter, PreAuthenticateServletFilter preAuthenticateServletFilter, PostAuthenticateServletFilter postAuthenticateServletFilter, org.springframework.beans.factory.ObjectProvider<org.springframework.security.config.Customizer<org.springframework.security.config.annotation.web.configurers.SessionManagementConfigurer<org.springframework.security.config.annotation.web.builders.HttpSecurity>>> sessionManagementConfigurer)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WebSecurityConfiguration

      public WebSecurityConfiguration()
  • Method Details

    • configureAuthenticationManager

      @Autowired public void configureAuthenticationManager(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) throws Exception
      Throws:
      Exception
    • passwordEncoder

      @Bean public static org.springframework.security.crypto.password.PasswordEncoder passwordEncoder()
    • securityFilterChain

      @Bean public org.springframework.security.web.SecurityFilterChain securityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, org.springframework.web.servlet.handler.HandlerMappingIntrospector introspector, org.springframework.boot.autoconfigure.web.ServerProperties serverProperties, CumulocityOAuthMicroserviceFilter cumulocityOAuthMicroserviceFilter, PreAuthenticateServletFilter preAuthenticateServletFilter, PostAuthenticateServletFilter postAuthenticateServletFilter, org.springframework.beans.factory.ObjectProvider<org.springframework.security.config.Customizer<org.springframework.security.config.annotation.web.configurers.SessionManagementConfigurer<org.springframework.security.config.annotation.web.builders.HttpSecurity>>> sessionManagementConfigurer) throws Exception
      Throws:
      Exception