To enroll a disposable using an authorized assertion you have to:
specify the
DisposableeIDAssertionHolderobject providing the country and type of the eID
Check the authorized eIDsspecify the
DisposableCertificateobject, providing:type= certificate typeotpType= otp type
specify the
DisposableContactsobject:if an OTP is required and the type is SMS
- specify
otpType=SMSin theDisposableCertificateobject - (Optional) specify the phoneNumber with the mobile property in the
DisposableContactsobject.
If this property is specified, this phonenumber will be used to send the otp.
If it is not specified and the assertion used in theDisposableeIDAssertionHoldercontains a phoneNumber, this number will be used to send the otp.
If it is not specified and the assertion doesn't contain the phoneNumber an error is triggered.
- specify
if an OTP is required and the type is EMAIL
- specify
otpType=EMAILin theDisposableCertificateobject - (Optional) specify the email property in the
DisposableContactsobject
If this property is specified, this email will be used to send the otp.
If it is not specified and the assertion used in theDisposableeIDAssertionHoldercontains an email, this will be used to send the otp.
If it is not specified and the assertion doesn't contain the email an error is triggered.
- specify
if an OTP is required and the type is WHATSAPP
- specify
otpType=WHATSAPPin theDisposableCertificateobject - (Optional) specify the phoneNumber with the mobile property in the
DisposableContactsobject.
If this property is specified, this phonenumber will be used to send the otp via WhatsApp.
If it is not specified and the assertion used in theDisposableeIDAssertionHoldercontains a phoneNumber, this number will be used to send the otp.
If it is not specified and the assertion doesn't contain the phoneNumber an error is triggered.
- specify
Then use these methods:
checkDataWitheIDAssertion(optional)getDisposableContractWitheIDAssertion(optional)- use the
enrollDisposableWitheIDAssertionmethod to enroll the certificate sendOtp: send the otp (if required)signPKCS1WithSHA256in the FRA service or use SWS: sign the documentuploadDocto upload the evidence of the otp or the authentication flow (optional)
To use otpType=EMAIL, otpType=WHATSAPP or otpType=NO_OTP the LRA has to be authorized.