Class HvlAuthzGoogleAuthenticatorRestController
java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.controller.HvlAuthzGoogleAuthenticatorRestController
- All Implemented Interfaces:
HvlAuthzGoogleAuthenticatorRestService
@RestController
@RequestMapping("${hvl.oauth.auth.google-authenticator.service.controller-path:/google-authenticator}")
@HvlActuatorService(name="HvlAuthzGoogleAuthenticatorRestService",
groupName="HvlAuthzGoogleAuthenticator")
public class HvlAuthzGoogleAuthenticatorRestController
extends Object
implements HvlAuthzGoogleAuthenticatorRestService
The class in which service endpoints are defined for google authenticator operations.
-
Constructor Summary
ConstructorDescriptionHvlAuthzGoogleAuthenticatorRestController
(HvlAuthzGoogleAuthenticatorService googleAuthenticatorService) Instantiates a new Hvl authz google authenticator rest controller. -
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse
<Void> disableGoogleAuthenticator
(@NotNull @Valid HvlAuthAuthorizationRequestModel authorizationRequestModel) Disable google authenticator hvl response.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> enableGoogleAuthenticator
(@NotNull @Valid HvlAuthAuthorizationRequestModel authorizationRequestModel) Enable google authenticator hvl response.tr.com.havelsan.javarch.service.data.HvlResponse
<String> getQRCode
(@NotNull @Valid HvlAuthAuthorizationRequestModel authorizationRequestModel) Gets qr code.
-
Constructor Details
-
HvlAuthzGoogleAuthenticatorRestController
public HvlAuthzGoogleAuthenticatorRestController(HvlAuthzGoogleAuthenticatorService googleAuthenticatorService) Instantiates a new Hvl authz google authenticator rest controller.- Parameters:
googleAuthenticatorService
- the google authenticator service
-
-
Method Details
-
getQRCode
public tr.com.havelsan.javarch.service.data.HvlResponse<String> getQRCode(@NotNull @Valid @RequestBody @NotNull @Valid HvlAuthAuthorizationRequestModel authorizationRequestModel) Gets qr code.- Specified by:
getQRCode
in interfaceHvlAuthzGoogleAuthenticatorRestService
- Parameters:
authorizationRequestModel
- the authorization request model- Returns:
- the qr code
-
enableGoogleAuthenticator
public tr.com.havelsan.javarch.service.data.HvlResponse<Void> enableGoogleAuthenticator(@NotNull @Valid @RequestBody @NotNull @Valid HvlAuthAuthorizationRequestModel authorizationRequestModel) Enable google authenticator hvl response.- Specified by:
enableGoogleAuthenticator
in interfaceHvlAuthzGoogleAuthenticatorRestService
- Parameters:
authorizationRequestModel
- the authorization request model- Returns:
- the hvl response
-
disableGoogleAuthenticator
public tr.com.havelsan.javarch.service.data.HvlResponse<Void> disableGoogleAuthenticator(@NotNull @Valid @RequestBody @NotNull @Valid HvlAuthAuthorizationRequestModel authorizationRequestModel) Disable google authenticator hvl response.- Specified by:
disableGoogleAuthenticator
in interfaceHvlAuthzGoogleAuthenticatorRestService
- Parameters:
authorizationRequestModel
- the authorization request model- Returns:
- the hvl response
-