+ verify(m, verificationCode, pin);
+ }
+
+ @Override
+ public TypeReference<VerifyParams> getRequestType() {
+ return new TypeReference<>() {};
+ }
+
+ @Override
+ public List<OutputType> getSupportedOutputTypes() {
+ return List.of(OutputType.PLAIN_TEXT, OutputType.JSON);
+ }
+
+ @Override
+ public void handleCommand(
+ final VerifyParams request,
+ final RegistrationManager m,
+ final JsonWriter jsonWriter
+ ) throws CommandException {
+ verify(m, request.verificationCode(), request.pin());
+ }
+
+ private void verify(
+ final RegistrationManager m,
+ final String verificationCode,
+ final String pin
+ ) throws UserErrorException, IOErrorException {