Package org.forgerock.selfservice.core
Class UserUpdateService
java.lang.Object
org.forgerock.selfservice.core.UserUpdateService
- All Implemented Interfaces:
CollectionResourceProvider
A RequestHandler that proxies user requests to update the user's KBA answers.
- Since:
- 0.8.0
-
Constructor Summary
ConstructorsConstructorDescriptionUserUpdateService(ConnectionFactory connectionFactory, SecurityAnswer securityAnswer, ResourcePath identityService, KbaConfig kbaConfig) Construct a service to update the user's KBA info. -
Method Summary
Modifier and TypeMethodDescriptionpatchInstance(Context context, String resourceId, PatchRequest request) Patchesan existing resource within the collection.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.forgerock.json.resource.CollectionResourceProvider
actionCollection, actionInstance, createInstance, deleteInstance, queryCollection, readInstance, updateInstance
-
Constructor Details
-
UserUpdateService
@Inject public UserUpdateService(ConnectionFactory connectionFactory, SecurityAnswer securityAnswer, ResourcePath identityService, KbaConfig kbaConfig) Construct a service to update the user's KBA info.- Parameters:
connectionFactory- a ConnectionFactory with access to the identityService route.securityAnswer- the helper class for security answersidentityService- the route to the identity service used to patch the userkbaConfig- the kbaConfig that contains questions and kbaPropertyName
-
-
Method Details
-
patchInstance
public Promise<ResourceResponse,ResourceException> patchInstance(Context context, String resourceId, PatchRequest request) Description copied from interface:CollectionResourceProviderPatchesan existing resource within the collection.- Specified by:
patchInstancein interfaceCollectionResourceProvider- Parameters:
context- The request server context.resourceId- The ID of the targeted resource within the collection.request- The patch request.- Returns:
- A
Promisecontaining the result of the operation. - See Also:
-