View Javadoc

1   package com.atlassian.plugins.rest.common.security;
2   
3   import java.lang.annotation.ElementType;
4   import java.lang.annotation.Retention;
5   import java.lang.annotation.RetentionPolicy;
6   import java.lang.annotation.Target;
7   
8   /**
9    * The annotation used to indicate that a method needs XSRF protection checking
10   *
11   * @since 2.4
12   * @deprecated since 3.0 this annotation will be removed in 4.0.
13   * This annotation is only required on @GET annotated resources.
14   * Resources annotated with a mutative method such as @POST no longer
15   * required this annotation as they are XSRF protected by default.
16   *
17   * To exclude a resource method from XSRF protection use the
18   * {@link com.atlassian.annotations.security.XsrfProtectionExcluded} annotation.
19   */
20  @Retention(RetentionPolicy.RUNTIME)
21  @Target(ElementType.METHOD)
22  public @interface RequiresXsrfCheck {
23  }