Variation of createCustomerOtp that does not contain the otp in the list of parameters.
Syntax
CustomerOtp
createCustomerOtp
(
long
customerId
,
int
otpType
,
long
referenceId
,
Map< String, String >
msgParams
,
long
callerId
) throws OtpValidationException, EntityNotFoundException
Parameters
-
customerId –
for whom to create the OTP
-
otpType –
the type of OTP to generate/send, defines length, message template, and send mode (email/SMS) (optional)
-
referenceId –
is stored with the CustomerOtp and can be retrieved when validating the OTP. This can be for example a transaction id in case the OTP is issued for a specific transaction
-
msgParams –
List of message parameters that is appended to the message that is sent out to the customer. Those can be referenced in the message template (which is configured for the OTP type)
-
callerId –
represents the ID of the caller of the operation. Used for tracking/audit purposes.
Returns
the newly created CustomerOtp
Exceptions
-
OtpValidationException –
-
EntityNotFoundException –
Usage
the newly created CustomerOtp