Class WeChatLoginConfigurer<H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>>

  • All Implemented Interfaces:
    org.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,​H>

    public final class WeChatLoginConfigurer<H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>>
    extends org.springframework.security.config.annotation.web.configurers.AbstractAuthenticationFilterConfigurer<H,​WeChatLoginConfigurer<H>,​org.oxerr.spring.security.wechat.web.authentication.WeChatAuthenticationFilter>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.oxerr.spring.security.wechat.core.userdetails.WeChatUserDetailsService weChatUserDetailsService  
    • Constructor Summary

      Constructors 
      Constructor Description
      WeChatLoginConfigurer​(org.oxerr.spring.security.wechat.web.authentication.WeChatService weChatService, org.oxerr.spring.security.wechat.core.userdetails.WeChatUserDetailsService weChatUserDetailsService)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configure​(H http)
      protected org.springframework.security.web.util.matcher.RequestMatcher createLoginProcessingUrlMatcher​(String loginProcessingUrl)
      void init​(H http)
      WeChatLoginConfigurer<H> loginPage​(String loginPage)  
      • Methods inherited from class org.springframework.security.config.annotation.web.configurers.AbstractAuthenticationFilterConfigurer

        authenticationDetailsSource, defaultSuccessUrl, defaultSuccessUrl, failureHandler, failureUrl, getAuthenticationEntryPoint, getAuthenticationEntryPointMatcher, getAuthenticationFilter, getFailureUrl, getLoginPage, getLoginProcessingUrl, isCustomLoginPage, loginProcessingUrl, permitAll, permitAll, registerAuthenticationEntryPoint, registerDefaultAuthenticationEntryPoint, securityContextRepository, setAuthenticationFilter, successHandler, updateAccessDefaults, updateAuthenticationDefaults
      • Methods inherited from class org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer

        disable, withObjectPostProcessor
      • Methods inherited from class org.springframework.security.config.annotation.SecurityConfigurerAdapter

        addObjectPostProcessor, and, getBuilder, postProcess, setBuilder
    • Field Detail

      • weChatUserDetailsService

        private final org.oxerr.spring.security.wechat.core.userdetails.WeChatUserDetailsService weChatUserDetailsService
    • Constructor Detail

      • WeChatLoginConfigurer

        public WeChatLoginConfigurer​(org.oxerr.spring.security.wechat.web.authentication.WeChatService weChatService,
                                     org.oxerr.spring.security.wechat.core.userdetails.WeChatUserDetailsService weChatUserDetailsService)
    • Method Detail

      • configure

        public void configure​(H http)
                       throws Exception
        Specified by:
        configure in interface org.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,​H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>>
        Overrides:
        configure in class org.springframework.security.config.annotation.web.configurers.AbstractAuthenticationFilterConfigurer<H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>,​WeChatLoginConfigurer<H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>>,​org.oxerr.spring.security.wechat.web.authentication.WeChatAuthenticationFilter>
        Throws:
        Exception
      • loginPage

        public WeChatLoginConfigurer<H> loginPage​(String loginPage)
        Overrides:
        loginPage in class org.springframework.security.config.annotation.web.configurers.AbstractAuthenticationFilterConfigurer<H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>,​WeChatLoginConfigurer<H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>>,​org.oxerr.spring.security.wechat.web.authentication.WeChatAuthenticationFilter>
      • init

        public void init​(H http)
                  throws Exception
        Specified by:
        init in interface org.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,​H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>>
        Overrides:
        init in class org.springframework.security.config.annotation.web.configurers.AbstractAuthenticationFilterConfigurer<H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>,​WeChatLoginConfigurer<H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>>,​org.oxerr.spring.security.wechat.web.authentication.WeChatAuthenticationFilter>
        Throws:
        Exception
      • createLoginProcessingUrlMatcher

        protected org.springframework.security.web.util.matcher.RequestMatcher createLoginProcessingUrlMatcher​(String loginProcessingUrl)
        Specified by:
        createLoginProcessingUrlMatcher in class org.springframework.security.config.annotation.web.configurers.AbstractAuthenticationFilterConfigurer<H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>,​WeChatLoginConfigurer<H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>>,​org.oxerr.spring.security.wechat.web.authentication.WeChatAuthenticationFilter>