Class AbstractResourceServerAutoConfiguration

  • All Implemented Interfaces:
    org.springframework.core.Ordered, org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,​org.springframework.security.config.annotation.web.builders.WebSecurity>, org.springframework.security.config.annotation.web.WebSecurityConfigurer<org.springframework.security.config.annotation.web.builders.WebSecurity>
    Direct Known Subclasses:
    ResourceServerAutoConfiguration, ResourceServerWithActuatorAutoConfiguration

    public abstract class AbstractResourceServerAutoConfiguration
    extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
    implements org.springframework.core.Ordered
    The abstract resource server security auto configuration.
    Author:
    Christian Bremer
    • Field Summary

      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractResourceServerAutoConfiguration​(org.springframework.core.env.Environment environment, org.springframework.boot.autoconfigure.security.SecurityProperties securityProperties, AuthProperties authProperties, CorsProperties corsProperties, org.springframework.beans.factory.ObjectProvider<JsonPathJwtConverter> jwtConverterProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.security.crypto.password.PasswordEncoder> passwordEncoderProvider)
      Instantiates a new abstract resource server security auto configuration.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected void configure​(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity)  
      int getOrder()  
      protected void init()
      Init.
      protected abstract org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry init​(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity)
      Init expression url authorization configurer . expression intercept url registry.
      • Methods inherited from class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter

        authenticationManager, authenticationManagerBean, configure, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
    • Constructor Detail

      • AbstractResourceServerAutoConfiguration

        protected AbstractResourceServerAutoConfiguration​(org.springframework.core.env.Environment environment,
                                                          org.springframework.boot.autoconfigure.security.SecurityProperties securityProperties,
                                                          AuthProperties authProperties,
                                                          CorsProperties corsProperties,
                                                          org.springframework.beans.factory.ObjectProvider<JsonPathJwtConverter> jwtConverterProvider,
                                                          org.springframework.beans.factory.ObjectProvider<org.springframework.security.crypto.password.PasswordEncoder> passwordEncoderProvider)
        Instantiates a new abstract resource server security auto configuration.
        Parameters:
        environment - the environment
        securityProperties - the spring properties
        authProperties - the authentication and authorization properties
        corsProperties - the cors properties
        jwtConverterProvider - the jwt converter provider
        passwordEncoderProvider - the password encoder provider
    • Method Detail

      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered
      • init

        protected void init()
        Init.
      • init

        protected abstract org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry init​(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity)
                                                                                                                                                            throws Exception
        Init expression url authorization configurer . expression intercept url registry.
        Parameters:
        httpSecurity - the http security
        Returns:
        the expression url authorization configurer . expression intercept url registry
        Throws:
        Exception - the exception
      • configure

        protected void configure​(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity)
                          throws Exception
        Overrides:
        configure in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
        Throws:
        Exception