Class RecoveryAuthenticationProviderImpl

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

    public class RecoveryAuthenticationProviderImpl
    extends java.lang.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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.security.core.Authentication authenticate​(org.springframework.security.core.Authentication authentication)  
      boolean supports​(java.lang.Class<?> authentication)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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​(java.lang.Class<?> authentication)
        Specified by:
        supports in interface org.springframework.security.authentication.AuthenticationProvider