com.atlassian.crowd.manager.validation
Class ClientValidationManagerImpl

java.lang.Object
  extended by com.atlassian.crowd.manager.validation.ClientValidationManagerImpl
All Implemented Interfaces:
ClientValidationManager
Direct Known Subclasses:
HordeClientValidationManager

public class ClientValidationManagerImpl
extends Object
implements ClientValidationManager

Implements ClientValidationManager.


Constructor Summary
ClientValidationManagerImpl(InetAddressCacheUtil cacheUtil, PropertyManager propertyManager, TrustedProxyManager trustedProxyManager, I18nHelper i18nHelper)
           
 
Method Summary
protected  Iterable<RemoteAddress> getAllowedAddressesForApplication(Application application)
          This method exists to make it possible for subclasses to determine the valid addresses from a different source.
 void validate(Application application, javax.servlet.http.HttpServletRequest request)
          Validates that the client is allowed to perform the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientValidationManagerImpl

public ClientValidationManagerImpl(InetAddressCacheUtil cacheUtil,
                                   PropertyManager propertyManager,
                                   TrustedProxyManager trustedProxyManager,
                                   I18nHelper i18nHelper)
Method Detail

validate

public void validate(Application application,
                     javax.servlet.http.HttpServletRequest request)
              throws ClientValidationException
Description copied from interface: ClientValidationManager
Validates that the client is allowed to perform the request.

Specified by:
validate in interface ClientValidationManager
Parameters:
application - Application to validate with.
request - HttpServletRequest
Throws:
ClientValidationException - if the client fails to validate with the application

getAllowedAddressesForApplication

protected Iterable<RemoteAddress> getAllowedAddressesForApplication(Application application)
This method exists to make it possible for subclasses to determine the valid addresses from a different source.

Parameters:
application - client application
Returns:
remote addresses from which the application is allowed to make requests


Copyright © 2014 Atlassian. All Rights Reserved.