class Oauth2Controller implements Oauth2Api {

    @Override
    public HrefType getAuthorizationUrl(Map<String, String> headers, Map<String, String> parameters) throws IOException {
        URI authorizationUrl = oauth2Service.getAuthorizationRequestUri(headers, new Parameters(parameters));
        HrefType hrefTypeTO = new HrefType();
        hrefTypeTO.setHref(authorizationUrl.toString());
        return hrefTypeTO;
    }

    public  Oauth2Controller(Oauth2Service oauth2Service);

}