package org.xdi.oxauth.client.uma;

import org.xdi.oxauth.model.uma.UmaConstants;
import org.xdi.oxauth.model.uma.UmaTokenResponse;

import javax.ws.rs.*;

/**
 * @author yuriyz on 06/21/2017.
 */
public interface UmaTokenService {

    @POST
    @Consumes({UmaConstants.JSON_MEDIA_TYPE})
    @Produces({UmaConstants.JSON_MEDIA_TYPE})
    UmaTokenResponse requestRpt(
            @HeaderParam("Authorization") String authorization,
            @FormParam("grant_type") String grantType,
            @FormParam("ticket") String ticket,
            @FormParam("claim_token") String claimToken,
            @FormParam("claim_token_format") String claimTokenFormat,
            @FormParam("pct") String pctCode,
            @FormParam("rpt") String rptCode,
            @FormParam("scope") String scope);
}

@@ -793,11 +793,675 @@
  scope);
+%0A%0A    @POST%0A    @Consumes(%7BUmaConstants.JSON_MEDIA_TYPE%7D)%0A    @Produces(%7BUmaConstants.JSON_MEDIA_TYPE%7D)%0A    UmaTokenResponse requestJwtAuthorizationRpt(%0A            @FormParam(%22client_assertion_type%22) String clientAssertionType,%0A            @FormParam(%22client_assertion%22) String clientAssertion,%0A            @FormParam(%22grant_type%22) String grantType,%0A            @FormParam(%22ticket%22) String ticket,%0A            @FormParam(%22claim_token%22) String claimToken,%0A            @FormParam(%22claim_token_format%22) String claimTokenFormat,%0A            @FormParam(%22pct%22) String pctCode,%0A            @FormParam(%22rpt%22) String rptCode,%0A            @FormParam(%22scope%22) String scope);
 %0A%7D%0A

Add method to use client_assertion in UMA 2.0 for authorization