io.vertx.mutiny.ext.auth.oauth2.providers.FacebookAuth 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 Facebook.
*
*
* NOTE: This class has been automatically generated from the {@link io.vertx.ext.auth.oauth2.providers.FacebookAuth original} non Mutiny-ified interface using Vert.x codegen.
*/
@io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.auth.oauth2.providers.FacebookAuth.class)
public class FacebookAuth {
public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new FacebookAuth((io.vertx.ext.auth.oauth2.providers.FacebookAuth) obj),
FacebookAuth::getDelegate
);
private final io.vertx.ext.auth.oauth2.providers.FacebookAuth delegate;
public FacebookAuth(io.vertx.ext.auth.oauth2.providers.FacebookAuth delegate) {
this.delegate = delegate;
}
public FacebookAuth(Object delegate) {
this.delegate = (io.vertx.ext.auth.oauth2.providers.FacebookAuth)delegate;
}
/**
* Empty constructor used by CDI, do not use this constructor directly.
**/
FacebookAuth() {
this.delegate = null;
}
public io.vertx.ext.auth.oauth2.providers.FacebookAuth 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;
FacebookAuth that = (FacebookAuth) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
/**
* @param vertx
* @param clientId the client id given to you by Facebook
* @param clientSecret the client secret given to you by Facebook
* @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.FacebookAuth.create(vertx.getDelegate(), clientId, clientSecret));
return ret;
}
/**
* @param vertx
* @param clientId the client id given to you by Facebook
* @param clientSecret the client secret given to you by Facebook
* @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.FacebookAuth.create(vertx.getDelegate(), clientId, clientSecret, httpClientOptions));
return ret;
}
public static FacebookAuth newInstance(io.vertx.ext.auth.oauth2.providers.FacebookAuth arg) {
return arg != null ? new FacebookAuth(arg) : null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy