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 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 interface org.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 interface IPortalAware
      Parameters:
      portal - the portal