/*
 * oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
 *
 * Copyright (c) 2014, Gluu
 */

package org.xdi.oxauth.client.fido.u2f;

import org.xdi.oxauth.model.fido.u2f.protocol.RegisterRequestMessage;
import org.xdi.oxauth.model.fido.u2f.protocol.RegisterStatus;

import javax.ws.rs.*;

/**
 * Еhe endpoint allows to start and finish U2F registration process
 *
 * @author Yuriy Movchan
 * @version August 9, 2017
 */
public interface RegistrationRequestService {

    @GET
    @Produces({"application/json"})
    public RegisterRequestMessage startRegistration(@QueryParam("username") String userName, @QueryParam("application") String appId, @QueryParam("session_id") String sessionId);

    @POST
    @Produces({"application/json"})
    public RegisterStatus finishRegistration(@FormParam("username") String userName, @FormParam("tokenResponse") String registerResponseString);

}
@@ -334,16 +334,50 @@
 ws.rs.*;
+%0Aimport javax.ws.rs.core.Response;
 %0A%0A/**%0A *
@@ -773,16 +773,295 @@
 onId);%0A%0A
+    @GET%0A    @Produces(%7B%22application/json%22%7D)%0A    public RegisterRequestMessage startRegistration(@QueryParam(%22username%22) String userName, @QueryParam(%22application%22) String appId, @QueryParam(%22session_id%22) String sessionId, @QueryParam(%22enrollment_code%22) String enrollmentCode);%0A%0A
     @POS

Add enrollment_code to U2F client