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

de.yourinspiration.spring.jwt.RolesAllowed Maven / Gradle / Ivy

The newest version!
package de.yourinspiration.spring.jwt;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotation for methods, to ensure that only subjects with one of the provided
 * roles can invoke this method.
 * 
 * @author Marcel Härle - [email protected]
 *
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Inherited
@Documented
public @interface RolesAllowed {

    String[] roles() default "";

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy