package io.vertx.groovy.ext.auth.oauth2;
public class OAuth2Auth_GroovyExtension {
public static java.lang.String authorizeURL(io.vertx.ext.auth.oauth2.OAuth2Auth j_receiver, java.util.Map<String, Object> params) {
return j_receiver.authorizeURL(params != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(params) : null);
}
public static void getToken(io.vertx.ext.auth.oauth2.OAuth2Auth j_receiver, java.util.Map<String, Object> params, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.auth.oauth2.AccessToken>> handler) {
j_receiver.getToken(params != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(params) : null,
handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.auth.oauth2.AccessToken>>() {
public void handle(io.vertx.core.AsyncResult<io.vertx.ext.auth.oauth2.AccessToken> ar) {
handler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
}
} : null);
}
}