Class RecoveryAuthenticationProviderImpl

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

    public class RecoveryAuthenticationProviderImpl
    extends Object
    implements RecoveryAuthenticationProvider
    AuthenticationProvider that offers the possibility to authenticate users with a recovery code. Used in conjunction with Two Factor Authentication and prevents users from being locked out of their account when they lose their phone.
    • Constructor Detail

      • RecoveryAuthenticationProviderImpl

        public RecoveryAuthenticationProviderImpl​(RecoveryService recoveryService)
    • 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​(Class<?> authentication)
        Specified by:
        supports in interface org.springframework.security.authentication.AuthenticationProvider