Class ExternalOtpController
java.lang.Object
es.kukenan.smartfi.microservice.firm.controller.ExternalOtpController
Controller for External Otp process.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringREST API base path.static final StringGenerate OTP endpoint path.private ExternalOtpServiceExternal Otp service.static final StringValidate OTP endpoint path. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.firm.api.externalotp.response.GenerateExternalOtpResponseDto>gerenateExternalOtp(es.kukenan.smartfi.common.service.jwt.WalletAuthenticationJwtImpl walletAuthenticationJwt, es.kukenan.smartfi.microservice.firm.api.externalotp.request.GenerateExternalOtpRequestDto requestBody) Generation and control of a firm process through OTP within skyline.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.firm.api.externalotp.ValidateOtpResponse>validateExternalOtp(es.kukenan.smartfi.common.service.jwt.WalletAuthenticationJwtImpl walletAuthenticationJwt, es.kukenan.smartfi.microservice.firm.api.externalotp.ValidateOtpRequest validateOtpRequestDto) Validate a firm process.
-
Field Details
-
API_PATH
REST API base path.- See Also:
-
GENERATE_OTP_PATH
Generate OTP endpoint path.- See Also:
-
VALIDATE_OTP_PATH
Validate OTP endpoint path.- See Also:
-
service
External Otp service.
-
-
Constructor Details
-
ExternalOtpController
public ExternalOtpController()
-
-
Method Details
-
gerenateExternalOtp
@PostMapping(produces="application/json", path="/api/v1/firm/generateOTP") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.firm.api.externalotp.response.GenerateExternalOtpResponseDto> gerenateExternalOtp(es.kukenan.smartfi.common.service.jwt.WalletAuthenticationJwtImpl walletAuthenticationJwt, @Validated @RequestBody es.kukenan.smartfi.microservice.firm.api.externalotp.request.GenerateExternalOtpRequestDto requestBody) Generation and control of a firm process through OTP within skyline.- Parameters:
walletAuthenticationJwt- smartfi Authentication.requestBody- body of Generate External OTP Request- Returns:
- an generate OTP
-
validateExternalOtp
@PostMapping(produces="application/json", path="/api/v1/firm/validateOTP") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.firm.api.externalotp.ValidateOtpResponse> validateExternalOtp(es.kukenan.smartfi.common.service.jwt.WalletAuthenticationJwtImpl walletAuthenticationJwt, @RequestBody es.kukenan.smartfi.microservice.firm.api.externalotp.ValidateOtpRequest validateOtpRequestDto) Validate a firm process.- Parameters:
walletAuthenticationJwt- smartfi authentication.validateOtpRequestDto- validateOtpRequestDto- Returns:
- an validate OTO response
-