io.vertx.mutiny.ext.auth.oauth2.providers.HerokuAuth Maven / Gradle / Ivy
package io.vertx.mutiny.ext.auth.oauth2.providers;
import java.util.Map;
import java.util.stream.Collectors;
import io.smallrye.mutiny.Multi;
import io.smallrye.mutiny.Uni;
import java.util.function.Consumer;
import org.reactivestreams.Subscriber;
import org.reactivestreams.Publisher;
import io.smallrye.mutiny.vertx.TypeArg;
import io.vertx.codegen.annotations.Fluent;
import io.vertx.core.http.HttpClientOptions;
/**
* Simplified factory to create an for Heroku.
*
*
* NOTE: This class has been automatically generated from the {@link io.vertx.ext.auth.oauth2.providers.HerokuAuth original} non Mutiny-ified interface using Vert.x codegen.
*/
@io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.auth.oauth2.providers.HerokuAuth.class)
public class HerokuAuth {
public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new HerokuAuth((io.vertx.ext.auth.oauth2.providers.HerokuAuth) obj),
HerokuAuth::getDelegate
);
private final io.vertx.ext.auth.oauth2.providers.HerokuAuth delegate;
public HerokuAuth(io.vertx.ext.auth.oauth2.providers.HerokuAuth delegate) {
this.delegate = delegate;
}
public HerokuAuth(Object delegate) {
this.delegate = (io.vertx.ext.auth.oauth2.providers.HerokuAuth)delegate;
}
/**
* Empty constructor used by CDI, do not use this constructor directly.
**/
HerokuAuth() {
this.delegate = null;
}
public io.vertx.ext.auth.oauth2.providers.HerokuAuth getDelegate() {
return delegate;
}
@Override
public String toString() {
return delegate.toString();
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
HerokuAuth that = (HerokuAuth) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
/**
* @param vertx
* @param clientId the client id given to you by Heroku
* @param clientSecret the client secret given to you by Heroku
* @return
*/
public static io.vertx.mutiny.ext.auth.oauth2.OAuth2Auth create(io.vertx.mutiny.core.Vertx vertx, String clientId, String clientSecret) {
io.vertx.mutiny.ext.auth.oauth2.OAuth2Auth ret = io.vertx.mutiny.ext.auth.oauth2.OAuth2Auth.newInstance((io.vertx.ext.auth.oauth2.OAuth2Auth)io.vertx.ext.auth.oauth2.providers.HerokuAuth.create(vertx.getDelegate(), clientId, clientSecret));
return ret;
}
/**
* @param vertx
* @param clientId the client id given to you by Heroku
* @param clientSecret the client secret given to you by Heroku
* @param httpClientOptions custom http client options
* @return
*/
public static io.vertx.mutiny.ext.auth.oauth2.OAuth2Auth create(io.vertx.mutiny.core.Vertx vertx, String clientId, String clientSecret, io.vertx.core.http.HttpClientOptions httpClientOptions) {
io.vertx.mutiny.ext.auth.oauth2.OAuth2Auth ret = io.vertx.mutiny.ext.auth.oauth2.OAuth2Auth.newInstance((io.vertx.ext.auth.oauth2.OAuth2Auth)io.vertx.ext.auth.oauth2.providers.HerokuAuth.create(vertx.getDelegate(), clientId, clientSecret, httpClientOptions));
return ret;
}
public static HerokuAuth newInstance(io.vertx.ext.auth.oauth2.providers.HerokuAuth arg) {
return arg != null ? new HerokuAuth(arg) : null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy