To expand on Muhammad Abdurrahman's answer--
@With(Secure.class)
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface Secure {
}
This does not work by default but you can use it in conjunction with Spring's AnnotationUtils.
See this SO answer for an example.