io.vertx.mutiny.ext.auth.oauth2.rbac.MicroProfileRBAC Maven / Gradle / Ivy
package io.vertx.mutiny.ext.auth.oauth2.rbac;
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;
/**
* Implementation of the Microprofile MP-JWT 1.1 RBAC based on the access token groups key.
*
*
* NOTE: This class has been automatically generated from the {@link io.vertx.ext.auth.oauth2.rbac.MicroProfileRBAC original} non Mutiny-ified interface using Vert.x codegen.
*/
@io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.auth.oauth2.rbac.MicroProfileRBAC.class)
public class MicroProfileRBAC {
public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new MicroProfileRBAC((io.vertx.ext.auth.oauth2.rbac.MicroProfileRBAC) obj),
MicroProfileRBAC::getDelegate
);
private final io.vertx.ext.auth.oauth2.rbac.MicroProfileRBAC delegate;
public MicroProfileRBAC(io.vertx.ext.auth.oauth2.rbac.MicroProfileRBAC delegate) {
this.delegate = delegate;
}
public MicroProfileRBAC(Object delegate) {
this.delegate = (io.vertx.ext.auth.oauth2.rbac.MicroProfileRBAC)delegate;
}
/**
* Empty constructor used by CDI, do not use this constructor directly.
**/
MicroProfileRBAC() {
this.delegate = null;
}
public io.vertx.ext.auth.oauth2.rbac.MicroProfileRBAC 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;
MicroProfileRBAC that = (MicroProfileRBAC) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
/**
* @return a RBAC validator
*/
public static io.vertx.mutiny.ext.auth.oauth2.OAuth2RBAC create() {
io.vertx.mutiny.ext.auth.oauth2.OAuth2RBAC ret = io.vertx.mutiny.ext.auth.oauth2.OAuth2RBAC.newInstance((io.vertx.ext.auth.oauth2.OAuth2RBAC)io.vertx.ext.auth.oauth2.rbac.MicroProfileRBAC.create());
return ret;
}
public static MicroProfileRBAC newInstance(io.vertx.ext.auth.oauth2.rbac.MicroProfileRBAC arg) {
return arg != null ? new MicroProfileRBAC(arg) : null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy