1 package com.atlassian.security.auth.trustedapps;
2
3 /**
4 * Filter that is supposed to prevent attacks on cross-application trust feature by restricting a range of IP addresses
5 * such request can originate from.
6 */
7 public interface IPMatcher
8 {
9 /**
10 * check if this IP is allowed to perform trusted calls.
11 *
12 * @throws IPAddressFormatException if the ip is not of the correct format.
13 */
14 boolean match(String ipAddress) throws IPAddressFormatException;
15 }