public class TwoFactorAuthenticationProviderImpl extends Object implements TwoFactorAuthenticationProvider
Checks if 2 factor authentication is configured for user.
If it is then check only with verificationKey
| Constructor and Description |
|---|
TwoFactorAuthenticationProviderImpl(TwoFactorAuthenticationService twoFactorAuthenticationService,
OtpService otpService,
RecoveryService recoveryService) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication) |
boolean |
supports(Class<?> authentication) |
public TwoFactorAuthenticationProviderImpl(TwoFactorAuthenticationService twoFactorAuthenticationService, OtpService otpService, RecoveryService recoveryService)
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
authenticate in interface org.springframework.security.authentication.AuthenticationProviderpublic boolean supports(Class<?> authentication)
supports in interface org.springframework.security.authentication.AuthenticationProviderCopyright © 2017. All rights reserved.