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