All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.mutiny.ext.auth.oauth2.providers.LinkedInAuth Maven / Gradle / Ivy

There is a newer version: 3.17.1
Show newest version
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 LinkedIn.
 *
 * 

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





© 2015 - 2025 Weber Informatics LLC | Privacy Policy