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

java.lang.Object
org.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,B>
org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer<T,B>
org.springframework.security.config.annotation.web.configurers.AbstractAuthenticationFilterConfigurer<H,OTPLoginConfigurer<H>,org.oxerr.spring.security.otp.web.authentication.OTPAuthenticationFilter>
org.oxerr.spring.security.otp.config.annotation.web.configurers.OTPLoginConfigurer<H>
All Implemented Interfaces:
org.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,H>

public final class OTPLoginConfigurer<H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>> extends org.springframework.security.config.annotation.web.configurers.AbstractAuthenticationFilterConfigurer<H,OTPLoginConfigurer<H>,org.oxerr.spring.security.otp.web.authentication.OTPAuthenticationFilter>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.oxerr.spring.security.otp.core.OTPAuthenticationService
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    OTPLoginConfigurer(org.oxerr.spring.security.otp.core.OTPAuthenticationService otpAuthenticationService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configure(H http)
     
    protected org.springframework.security.web.util.matcher.RequestMatcher
     
    void
    init(H http)
     
    oneTimePasswordParameter(String oneTimePasswordParameter)
     

    Methods inherited from class org.springframework.security.config.annotation.web.configurers.AbstractAuthenticationFilterConfigurer

    authenticationDetailsSource, defaultSuccessUrl, defaultSuccessUrl, failureHandler, failureUrl, getAuthenticationEntryPoint, getAuthenticationEntryPointMatcher, getAuthenticationFilter, getFailureUrl, getLoginPage, getLoginProcessingUrl, isCustomLoginPage, loginPage, 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

    Methods inherited from class java.lang.Object

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

    • otpAuthenticationService

      private final org.oxerr.spring.security.otp.core.OTPAuthenticationService otpAuthenticationService
  • Constructor Details

    • OTPLoginConfigurer

      public OTPLoginConfigurer(org.oxerr.spring.security.otp.core.OTPAuthenticationService otpAuthenticationService)
  • Method Details

    • 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>,OTPLoginConfigurer<H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>>,org.oxerr.spring.security.otp.web.authentication.OTPAuthenticationFilter>
    • 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>,OTPLoginConfigurer<H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>>,org.oxerr.spring.security.otp.web.authentication.OTPAuthenticationFilter>
      Throws:
      Exception
    • 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>,OTPLoginConfigurer<H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>>,org.oxerr.spring.security.otp.web.authentication.OTPAuthenticationFilter>
      Throws:
      Exception
    • oneTimePasswordParameter

      public OTPLoginConfigurer<H> oneTimePasswordParameter(String oneTimePasswordParameter)