Class ExternalOtpController

java.lang.Object
es.kukenan.smartfi.microservice.firm.controller.ExternalOtpController

@RestController public class ExternalOtpController extends Object
Controller for External Otp process.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    REST API base path.
    static final String
    Generate OTP endpoint path.
    External Otp service.
    static final String
    Validate OTP endpoint path.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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