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

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