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

com.zandero.rest.annotation.Authorize Maven / Gradle / Ivy

The newest version!
package com.zandero.rest.annotation;

import com.zandero.rest.authorization.RoleBasedUserAuthorizationProvider;
import io.vertx.ext.auth.authorization.AuthorizationProvider;

import java.lang.annotation.*;

/**
 *
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
@Documented
public @interface Authorize {

    Class value() default RoleBasedUserAuthorizationProvider.class;

    /**
     * Optional, mainly for back compatibility purposes to provide roles to RoleBasedAuthorizationProvider
     * @return list of allowed roles
     */
    String[] role() default "";
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy