mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
22 lines
531 B
Java
22 lines
531 B
Java
package com.commafeed.frontend.auth;
|
|
|
|
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;
|
|
|
|
import com.commafeed.backend.model.UserRole.Role;
|
|
|
|
@Inherited
|
|
@Target({ ElementType.PARAMETER })
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
public @interface SecurityCheck {
|
|
|
|
/**
|
|
* Roles needed.
|
|
*/
|
|
Role value() default Role.USER;
|
|
|
|
boolean apiKeyAllowed() default false;
|
|
} |