Class SecurityConfiguration

java.lang.Object
com.vaadin.flow.spring.security.VaadinWebSecurity
com.decs.application.security.SecurityConfiguration

@EnableWebSecurity @Configuration public class SecurityConfiguration extends com.vaadin.flow.spring.security.VaadinWebSecurity
Security Configuration Class

This class represents the security configurations of the web application.

Version:
1.0
Author:
Bruno Guiomar
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
    Establishes the security configurations of the web application
    org.springframework.security.crypto.password.PasswordEncoder
    Creates a new cryptographic password encoder

    Methods inherited from class com.vaadin.flow.spring.security.VaadinWebSecurity

    addLogoutHandlers, antMatchers, applyUrlMapping, configure, enableNavigationAccessControl, filterChain, getAuthenticationContext, getDefaultHttpSecurityPermitMatcher, getDefaultHttpSecurityPermitMatcher, getDefaultWebSecurityIgnoreMatcher, getDefaultWebSecurityIgnoreMatcher, getNavigationAccessControl, getViewAccessChecker, routeMatchers, setLoginView, setLoginView, setLoginView, setLoginView, setOAuth2LoginPage, setStatelessAuthentication, setStatelessAuthentication, webSecurityCustomizer

    Methods inherited from class java.lang.Object

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

    • SecurityConfiguration

      public SecurityConfiguration()
  • Method Details

    • passwordEncoder

      @Bean public org.springframework.security.crypto.password.PasswordEncoder passwordEncoder()
      Creates a new cryptographic password encoder
      Returns:
      password encoder
    • configure

      protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
      Establishes the security configurations of the web application
      Overrides:
      configure in class com.vaadin.flow.spring.security.VaadinWebSecurity
      Parameters:
      http - HTTP Security object
      Throws:
      Exception