io.vertx.mutiny.ext.auth.shiro.ShiroAuth Maven / Gradle / Ivy
The newest version!
package io.vertx.mutiny.ext.auth.shiro;
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.shiro.ShiroAuthOptions;
/**
* Factory interface for creating Apache Shiro based {@link io.vertx.mutiny.ext.auth.authentication.AuthenticationProvider} instances.
*
*
* NOTE: This class has been automatically generated from the {@link io.vertx.ext.auth.shiro.ShiroAuth original} non Mutiny-ified interface using Vert.x codegen.
*/
@io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.auth.shiro.ShiroAuth.class)
public class ShiroAuth extends io.vertx.mutiny.ext.auth.AuthProvider {
public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new ShiroAuth((io.vertx.ext.auth.shiro.ShiroAuth) obj),
ShiroAuth::getDelegate
);
private final io.vertx.ext.auth.shiro.ShiroAuth delegate;
public ShiroAuth(io.vertx.ext.auth.shiro.ShiroAuth delegate) {
super(delegate);
this.delegate = delegate;
}
public ShiroAuth(Object delegate) {
super((io.vertx.ext.auth.shiro.ShiroAuth)delegate);
this.delegate = (io.vertx.ext.auth.shiro.ShiroAuth)delegate;
}
/**
* Empty constructor used by CDI, do not use this constructor directly.
**/
ShiroAuth() {
super(null);
this.delegate = null;
}
public io.vertx.ext.auth.shiro.ShiroAuth 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;
ShiroAuth that = (ShiroAuth) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
/**
* @param vertx the Vert.x instance
* @param options the Shiro configuration options
* @return the auth provider
* @deprecated */
@Deprecated
public static io.vertx.mutiny.ext.auth.shiro.ShiroAuth create(io.vertx.mutiny.core.Vertx vertx, io.vertx.ext.auth.shiro.ShiroAuthOptions options) {
io.vertx.mutiny.ext.auth.shiro.ShiroAuth ret = io.vertx.mutiny.ext.auth.shiro.ShiroAuth.newInstance((io.vertx.ext.auth.shiro.ShiroAuth)io.vertx.ext.auth.shiro.ShiroAuth.create(vertx.getDelegate(), options));
return ret;
}
public static ShiroAuth newInstance(io.vertx.ext.auth.shiro.ShiroAuth arg) {
return arg != null ? new ShiroAuth(arg) : null;
}
}