Package com.avoka.fc.core.security
Class TwoFactorAuthenticationUserDetailsChecker
java.lang.Object
com.avoka.fc.core.security.TwoFactorAuthenticationUserDetailsChecker
- All Implemented Interfaces:
IPortalAware
,org.springframework.security.core.userdetails.UserDetailsChecker
public class TwoFactorAuthenticationUserDetailsChecker
extends Object
implements org.springframework.security.core.userdetails.UserDetailsChecker, IPortalAware
Provides a user details checker that checks additional authentication factors if configured.
- Since:
- 4.2.0
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TwoFactorAuthenticationUserDetailsChecker
public TwoFactorAuthenticationUserDetailsChecker()
-
-
Method Details
-
check
public void check(org.springframework.security.core.userdetails.UserDetails toCheck) Check multi-factor authentication if needed.- Specified by:
check
in interfaceorg.springframework.security.core.userdetails.UserDetailsChecker
- Parameters:
toCheck
- the user account (required)- See Also:
-
UserDetailsChecker.check(UserDetails)
-
setPortal
Set the portal that authentication is happening on. This must be done fore check() is called.- Specified by:
setPortal
in interfaceIPortalAware
- Parameters:
portal
- the portal
-