com.atlassian.security.auth.trustedapps
Class DefaultIPMatcher

java.lang.Object
  extended bycom.atlassian.security.auth.trustedapps.DefaultIPMatcher
All Implemented Interfaces:
IPMatcher

public class DefaultIPMatcher
extends java.lang.Object
implements IPMatcher

simple list based implementation. Matches using exact matches or wildcards like: 192.168.*.* or 192.145.372.*


Constructor Summary
DefaultIPMatcher(java.util.Set patterns)
          Main ctor.
 
Method Summary
 boolean match(java.lang.String ipAddress)
          check if this IP is allowed to perform trusted calls.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIPMatcher

public DefaultIPMatcher(java.util.Set patterns)
                 throws IPAddressFormatException
Main ctor.

Parameters:
patterns - the Set of allowed pattern Strings
Throws:
IPAddressFormatException - if the pattern does not represent a valid IP address
Method Detail

match

public boolean match(java.lang.String ipAddress)
Description copied from interface: IPMatcher
check if this IP is allowed to perform trusted calls.

Specified by:
match in interface IPMatcher


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.