View Javadoc
1   package usecase.auth;
2   
3   import java.lang.annotation.*;
4   
5   
6   @Target({ElementType.METHOD, ElementType.TYPE})
7   @Retention(RetentionPolicy.RUNTIME)
8   @Documented
9   public @interface AuthorizationConstraints {
10      enum Types {
11          REQUIRE_AUTHENTICATION, DENY_BANNED_USERS, ADMINS_ONLY;
12      }
13  
14      Types[] value();
15  }