Interface MfaService
- All Superinterfaces:
JAXRSService
- All Known Implementing Classes:
MfaServiceImpl
REST operations for MFA management.
-
Field Summary
Fields 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 -
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.
-
Method Details
-
generate
@POST @Path("{username}") @Produces("application/json") Mfa generate(@NotNull @PathParam("username") @NotNull String username) Generate MFA information for the given user.- Parameters:
username- username- Returns:
- MFA information for the given user.
-
enroll
Store the provided MFA information for the calling user.- Parameters:
mfa- MFA information
-
dismiss
Dismiss MFA information for the calling user. -
dismiss
Dismiss MFA information for the given user.- Parameters:
username- username
-
enrolled
@HEAD @Path("{username}") Response enrolled(@NotNull @PathParam("username") @NotNull String username) Checks if MFA information was enrolled for the given user.- Parameters:
username- username- Returns:
- Response object featuring the boolean result in the 'X-Syncope-Verfied' header
-
check
Check the provided OTP against the provided MFA secret.- Parameters:
mfaCheck- MFA secret and OTP- Returns:
- Response object featuring the boolean result in the 'X-Syncope-Verfied' header
-