Class HvlAuthVerificationRestController
java.lang.Object
tr.com.havelsan.javarch.oauth.auth.starter.controller.HvlAuthVerificationRestController
- All Implemented Interfaces:
HvlAuthVerificationRestService
@RestController
@RequestMapping("${hvl.oauth.auth.authentication.verification.service.controller-path:/verification}")
@HvlActuatorService(name="hvlAuthVerificationRestService",
groupName="hvlAuth")
public class HvlAuthVerificationRestController
extends Object
implements HvlAuthVerificationRestService
The class in which service endpoints are defined for verification operations.
-
Constructor Summary
ConstructorDescriptionHvlAuthVerificationRestController
(HvlAuthVerificationService verificationService) Instantiates a new HvlAuthRestController. -
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse<Boolean>
exists
(@NotNull HvlAuthVerificationRequestModel verificationRequestModel) Code exists.tr.com.havelsan.javarch.service.data.HvlResponse<String>
generate
(@NotNull HvlAuthVerificationRequestModel verificationRequestModel) Code generates.tr.com.havelsan.javarch.service.data.HvlResponse<Boolean>
validate
(@NotNull HvlAuthVerificationRequestModel verificationRequestModel) Code validates.
-
Constructor Details
-
HvlAuthVerificationRestController
Instantiates a new HvlAuthRestController.- Parameters:
verificationService
- the verification service
-
-
Method Details
-
generate
public tr.com.havelsan.javarch.service.data.HvlResponse<String> generate(@NotNull @Validated(Generation.class) @RequestBody @NotNull HvlAuthVerificationRequestModel verificationRequestModel) Code generates.- Specified by:
generate
in interfaceHvlAuthVerificationRestService
- Parameters:
verificationRequestModel
- the verification request model- Returns:
- the hvl response
-
exists
public tr.com.havelsan.javarch.service.data.HvlResponse<Boolean> exists(@NotNull @Validated(Validation.class) @RequestBody @NotNull HvlAuthVerificationRequestModel verificationRequestModel) throws HvlAuthException Code exists.- Specified by:
exists
in interfaceHvlAuthVerificationRestService
- Parameters:
verificationRequestModel
- the verification request model- Returns:
- the hvl response
- Throws:
HvlAuthException
- the hvl auth exception
-
validate
public tr.com.havelsan.javarch.service.data.HvlResponse<Boolean> validate(@NotNull @Validated(Validation.class) @RequestBody @NotNull HvlAuthVerificationRequestModel verificationRequestModel) Code validates.- Specified by:
validate
in interfaceHvlAuthVerificationRestService
- Parameters:
verificationRequestModel
- the verification request model- Returns:
- the hvl response
-