Class GenericOtpRequiredResponseHandler
java.lang.Object
es.kukenan.smartfi.microservice.onboarding.security.otp.AbstractOtpRequiredResponseHandler
es.kukenan.smartfi.microservice.onboarding.security.otp.GenericOtpRequiredResponseHandler
@Component
public class GenericOtpRequiredResponseHandler
extends AbstractOtpRequiredResponseHandler
Generic OTP required response handler.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final es.kukenan.smartfi.logger.WalletLoggerInstance logger.private final Stringpath signature.private Stringsignature host.Fields inherited from class es.kukenan.smartfi.microservice.onboarding.security.otp.AbstractOtpRequiredResponseHandler
objectMapper, otpService, otpUtilities -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate OtpCachecreateOtpCache(User user) Contract for the OTP required response handler method.Methods inherited from class es.kukenan.smartfi.microservice.onboarding.security.otp.AbstractOtpRequiredResponseHandler
publishOtpEvent, saveOtpProcess
-
Field Details
-
pathSignature
path signature.- See Also:
-
log
private final es.kukenan.smartfi.logger.WalletLogger logInstance logger. -
signatureHost
signature host.
-
-
Constructor Details
-
GenericOtpRequiredResponseHandler
public GenericOtpRequiredResponseHandler()
-
-
Method Details
-
handle
Description copied from class:AbstractOtpRequiredResponseHandlerContract for the OTP required response handler method.- Specified by:
handlein classAbstractOtpRequiredResponseHandler- Parameters:
user- user to send OTP.- Returns:
- OtpRequired
- Throws:
NoSuchAlgorithmException- if anNoSuchAlgorithmExceptionis thrown.
-
createOtpCache
- Throws:
NoSuchAlgorithmException
-