
de.yourinspiration.spring.jwt.RolesAllowed Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-jwt Show documentation
Show all versions of spring-jwt Show documentation
JWT integration for Spring web projects.
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