Interface RegistrationRequestHandler<RequestModel>
- All Superinterfaces:
HasValidatableRequestModel<RequestModel>,RequestHandler<RequestModel>
The registration request handler.
The role of this handler is to provide the means for the server to register new user accounts.
Note: the server currently ignores the return value of the get(Object, Response) and
post(Object, Response) methods, so you can simply return Optional.empty() in every case.
In future releases of the SDK, new functionality may be added based on the return values.
- Since:
- 2.1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionget(RequestModel requestModel, Response response) Handle a GET HTTP Request.post(RequestModel requestModel, Response response) Handle a POST HTTP Request.Methods inherited from interface se.curity.identityserver.sdk.web.validation.HasValidatableRequestModel
onRequestModelValidationFailure, preProcess
-
Method Details
-
get
Handle a GET HTTP Request.- Specified by:
getin interfaceRequestHandler<RequestModel>- Parameters:
requestModel- the validated request modelresponse- the response- Returns:
- the registration result in case a new account was registered, or empty otherwise.
- See Also:
-
post
Handle a POST HTTP Request.- Specified by:
postin interfaceRequestHandler<RequestModel>- Parameters:
requestModel- the validated request modelresponse- the response- Returns:
- optional
RegistrationResultin case the registration succeeded, otherwise empty. - See Also:
-