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

io.vertx.mutiny.ext.auth.ldap.LdapAuthentication Maven / Gradle / Ivy

package io.vertx.mutiny.ext.auth.ldap;

import java.util.Map;
import java.util.stream.Collectors;
import io.smallrye.mutiny.Multi;
import io.smallrye.mutiny.Uni;
import io.smallrye.mutiny.vertx.TypeArg;
import io.vertx.codegen.annotations.Fluent;
import io.smallrye.common.annotation.CheckReturnValue;
import io.vertx.ext.auth.ldap.LdapAuthenticationOptions;

/**
 * Factory interface for creating a LDAP {@link io.vertx.mutiny.ext.auth.authentication.AuthenticationProvider}.
 *
 * 

* NOTE: This class has been automatically generated from the {@link io.vertx.ext.auth.ldap.LdapAuthentication original} non Mutiny-ified interface using Vert.x codegen. */ @io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.auth.ldap.LdapAuthentication.class) public class LdapAuthentication extends io.vertx.mutiny.ext.auth.authentication.AuthenticationProvider { public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new LdapAuthentication((io.vertx.ext.auth.ldap.LdapAuthentication) obj), LdapAuthentication::getDelegate ); private final io.vertx.ext.auth.ldap.LdapAuthentication delegate; public LdapAuthentication(io.vertx.ext.auth.ldap.LdapAuthentication delegate) { super(delegate); this.delegate = delegate; } public LdapAuthentication(Object delegate) { super((io.vertx.ext.auth.ldap.LdapAuthentication)delegate); this.delegate = (io.vertx.ext.auth.ldap.LdapAuthentication)delegate; } /** * Empty constructor used by CDI, do not use this constructor directly. **/ LdapAuthentication() { super(null); this.delegate = null; } public io.vertx.ext.auth.ldap.LdapAuthentication 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; LdapAuthentication that = (LdapAuthentication) o; return delegate.equals(that.delegate); } @Override public int hashCode() { return delegate.hashCode(); } /** * @param vertx the Vert.x instance * @param options the ldap options * @return the authentication provider */ public static io.vertx.mutiny.ext.auth.ldap.LdapAuthentication create(io.vertx.mutiny.core.Vertx vertx, io.vertx.ext.auth.ldap.LdapAuthenticationOptions options) { io.vertx.mutiny.ext.auth.ldap.LdapAuthentication ret = io.vertx.mutiny.ext.auth.ldap.LdapAuthentication.newInstance((io.vertx.ext.auth.ldap.LdapAuthentication)io.vertx.ext.auth.ldap.LdapAuthentication.create(vertx.getDelegate(), options)); return ret; } public static LdapAuthentication newInstance(io.vertx.ext.auth.ldap.LdapAuthentication arg) { return arg != null ? new LdapAuthentication(arg) : null; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy