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
Constructors Constructor Description TwoFactorAuthenticationUserDetailsChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
check(org.springframework.security.core.userdetails.UserDetails toCheck)
Check multi-factor authentication if needed.void
setPortal(Portal portal)
Set the portal that authentication is happening on.
-
-
-
Method Detail
-
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
public void setPortal(Portal portal)
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
-
-