Class TwoFactorAuthenticationProviderImpl
- java.lang.Object
-
- org.molgenis.security.twofactor.auth.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 TwoFactorAuthenticationTokenChecks if 2 factor authentication is configured for user.
If it is then check only with verificationKey
-
-
Constructor Summary
Constructors Constructor Description TwoFactorAuthenticationProviderImpl(TwoFactorAuthenticationService twoFactorAuthenticationService, OtpService otpService, 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(java.lang.Class<?> authentication)
-
-
-
Constructor Detail
-
TwoFactorAuthenticationProviderImpl
public TwoFactorAuthenticationProviderImpl(TwoFactorAuthenticationService twoFactorAuthenticationService, OtpService otpService, 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(java.lang.Class<?> authentication)
- Specified by:
supportsin interfaceorg.springframework.security.authentication.AuthenticationProvider
-
-