1 package com.atlassian.security.auth.trustedapps;
2
3 import javax.servlet.http.HttpServletRequest;
4
5 /**
6 * Validate whether a request is allowed or not. Throws an InvalidRequestException if not.
7 */
8 public interface RequestValidator
9 {
10 /**
11 * Check if this URL is allowed to be accessed by trusted calls
12 *
13 * @throws InvalidRequestException if the requested url does not match the allowed ones.
14 */
15 void validate(HttpServletRequest request) throws InvalidRequestException;
16 }