Class TestResourceServerConfiguration

java.lang.Object
com.totvs.tjf.test.support.security.TestResourceServerConfiguration
All Implemented Interfaces:
org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurer

public class TestResourceServerConfiguration extends Object implements org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurer
Configurer the ResourceServer to be stateful during the test execution.
  • Constructor Details

    • TestResourceServerConfiguration

      public TestResourceServerConfiguration()
  • Method Details

    • configure

      public void configure(org.springframework.security.oauth2.config.annotation.web.configurers.ResourceServerSecurityConfigurer resources) throws Exception
      Define the resources as stateful.
      Specified by:
      configure in interface org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurer
      Throws:
      Exception
    • configure

      public void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
      Specified by:
      configure in interface org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurer
      Throws:
      Exception