Class TwoFactorAuthenticationProviderImpl

  • All Implemented Interfaces:
    TwoFactorAuthenticationProvider, org.springframework.security.authentication.AuthenticationProvider

    public class TwoFactorAuthenticationProviderImpl
    extends java.lang.Object
    implements TwoFactorAuthenticationProvider
    AuthenticationProvider that uses the TwoFactorAuthenticationService and expects a TwoFactorAuthenticationToken

    Checks if 2 factor authentication is configured for user.

    If it is then check only with verificationKey

    • Method Detail

      • authenticate

        public org.springframework.security.core.Authentication authenticate​(org.springframework.security.core.Authentication authentication)
        Specified by:
        authenticate in interface org.springframework.security.authentication.AuthenticationProvider
      • supports

        public boolean supports​(java.lang.Class<?> authentication)
        Specified by:
        supports in interface org.springframework.security.authentication.AuthenticationProvider