View Javadoc

1   package com.atlassian.plugins.rest.common.security;
2   
3   import javax.ws.rs.WebApplicationException;
4   import javax.ws.rs.core.Response;
5   
6   /**
7    * Thrown when an XSRF check fails
8    *
9    * @since 2.4
10   */
11  public class XsrfCheckFailedException extends WebApplicationException
12  {
13      public XsrfCheckFailedException()
14      {
15          super(Response.status(Response.Status.NOT_FOUND).entity("XSRF check failed").build());
16      }
17  }