Class RecoveryAuthenticationProviderImpl
- java.lang.Object
-
- org.molgenis.security.twofactor.auth.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 Summary
Constructors Constructor Description RecoveryAuthenticationProviderImpl(RecoveryService recoveryService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication)booleansupports(Class<?> authentication)
-
-
-
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:
authenticatein interfaceorg.springframework.security.authentication.AuthenticationProvider
-
supports
public boolean supports(Class<?> authentication)
- Specified by:
supportsin interfaceorg.springframework.security.authentication.AuthenticationProvider
-
-