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
-
Field Summary
FieldsFields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
LOG, messageContext, OPTIONS_ALLOW, searchContext, uriInfoFields inherited from interface org.apache.syncope.common.rest.api.service.JAXRSService
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_KEYWORD, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RECURSIVE, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCheck the provided OTP against the provided MFA secret.voiddismiss()Dismiss MFA information for the calling user.voidDismiss MFA information for the given user.voidStore the provided MFA information for the calling user.Checks if MFA information was enrolled for the given user.Generate MFA information for the given user.Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
applyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getPreference, isNullPriorityAsync, modificationResponse, pageable, pageable, sort
-
Field Details
-
logic
-
-
Constructor Details
-
MfaServiceImpl
-
-
Method Details
-
generate
Description copied from interface:MfaServiceGenerate MFA information for the given user.- Specified by:
generatein interfaceMfaService- Parameters:
username- username- Returns:
- MFA information for the given user.
-
enroll
Description copied from interface:MfaServiceStore the provided MFA information for the calling user.- Specified by:
enrollin interfaceMfaService- Parameters:
mfa- MFA information
-
dismiss
public void dismiss()Description copied from interface:MfaServiceDismiss MFA information for the calling user.- Specified by:
dismissin interfaceMfaService
-
dismiss
Description copied from interface:MfaServiceDismiss MFA information for the given user.- Specified by:
dismissin interfaceMfaService- Parameters:
username- username
-
enrolled
Description copied from interface:MfaServiceChecks if MFA information was enrolled for the given user.- Specified by:
enrolledin interfaceMfaService- Parameters:
username- username- Returns:
- Response object featuring the boolean result in the 'X-Syncope-Verfied' header
-
check
Description copied from interface:MfaServiceCheck the provided OTP against the provided MFA secret.- Specified by:
checkin interfaceMfaService- Parameters:
mfaCheck- MFA secret and OTP- Returns:
- Response object featuring the boolean result in the 'X-Syncope-Verfied' header
-