@Retention(value=RUNTIME) @Target(value=METHOD) public @interface AnonymousAccessEnabled
By default, all resource methods require users to be authenticated. With this annotation, authentication becomes optional. This annotation also disables any authorization check.