com.atlassian.security.auth.trustedapps
Class DefaultRequestValidator

java.lang.Object
  extended bycom.atlassian.security.auth.trustedapps.DefaultRequestValidator
All Implemented Interfaces:
RequestValidator

public class DefaultRequestValidator
extends java.lang.Object
implements RequestValidator

DefaultRequestValidor aggregates IP and URL matchers and throws an exception if they do not match.


Constructor Summary
DefaultRequestValidator(IPMatcher ipMatcher, URLMatcher urlMatcher)
           
 
Method Summary
 void validate(javax.servlet.http.HttpServletRequest request)
          Check if this URL is allowed to be accessed by trusted calls
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRequestValidator

public DefaultRequestValidator(IPMatcher ipMatcher,
                               URLMatcher urlMatcher)
Method Detail

validate

public void validate(javax.servlet.http.HttpServletRequest request)
              throws InvalidRequestException
Description copied from interface: RequestValidator
Check if this URL is allowed to be accessed by trusted calls

Specified by:
validate in interface RequestValidator
Throws:
InvalidRequestException - if the requested url does not match the allowed ones.


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.