![JAR search and dependency download from the Maven repository](/logo.png)
net.redpipe.engine.security.AuthorizingAnnotationHandler Maven / Gradle / Ivy
package net.redpipe.engine.security;
import java.lang.annotation.Annotation;
import org.jboss.resteasy.spi.ResteasyProviderFactory;
import io.reactivex.Single;
import io.vertx.reactivex.ext.auth.User;
import io.vertx.reactivex.ext.web.RoutingContext;
public abstract class AuthorizingAnnotationHandler {
protected User getUser() {
RoutingContext ctx = ResteasyProviderFactory.getContextData(RoutingContext.class);
return ctx.user();
}
public abstract Single assertAuthorized(Annotation authzSpec);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy