Class MfaServiceImpl

java.lang.Object
org.apache.syncope.core.rest.cxf.service.AbstractService
org.apache.syncope.core.rest.cxf.service.MfaServiceImpl
All Implemented Interfaces:
JAXRSService, MfaService

public class MfaServiceImpl extends AbstractService implements MfaService
  • Field Details

    • logic

      protected final MfaLogic logic
  • Constructor Details

    • MfaServiceImpl

      public MfaServiceImpl(MfaLogic logic)
  • Method Details

    • generate

      public Mfa generate(String username)
      Description copied from interface: MfaService
      Generate MFA information for the given user.
      Specified by:
      generate in interface MfaService
      Parameters:
      username - username
      Returns:
      MFA information for the given user.
    • enroll

      public void enroll(Mfa mfa)
      Description copied from interface: MfaService
      Store the provided MFA information for the calling user.
      Specified by:
      enroll in interface MfaService
      Parameters:
      mfa - MFA information
    • dismiss

      public void dismiss()
      Description copied from interface: MfaService
      Dismiss MFA information for the calling user.
      Specified by:
      dismiss in interface MfaService
    • dismiss

      public void dismiss(String username)
      Description copied from interface: MfaService
      Dismiss MFA information for the given user.
      Specified by:
      dismiss in interface MfaService
      Parameters:
      username - username
    • enrolled

      public Response enrolled(String username)
      Description copied from interface: MfaService
      Checks if MFA information was enrolled for the given user.
      Specified by:
      enrolled in interface MfaService
      Parameters:
      username - username
      Returns:
      Response object featuring the boolean result in the 'X-Syncope-Verfied' header
    • check

      public Response check(MfaCheck mfaCheck)
      Description copied from interface: MfaService
      Check the provided OTP against the provided MFA secret.
      Specified by:
      check in interface MfaService
      Parameters:
      mfaCheck - MFA secret and OTP
      Returns:
      Response object featuring the boolean result in the 'X-Syncope-Verfied' header