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

io.vertx.mutiny.ext.auth.oauth2.providers.SoundcloudAuth 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 SoundCloud.
 *
 * 

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





© 2015 - 2025 Weber Informatics LLC | Privacy Policy