com.atlassian.crowd.manager.validation
Class ClientValidationManagerImpl
java.lang.Object
com.atlassian.crowd.manager.validation.ClientValidationManagerImpl
- All Implemented Interfaces:
- ClientValidationManager
- Direct Known Subclasses:
- HordeClientValidationManager
public class ClientValidationManagerImpl
- extends Object
- implements ClientValidationManager
Implements ClientValidationManager.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientValidationManagerImpl
public ClientValidationManagerImpl(InetAddressCacheUtil cacheUtil,
PropertyManager propertyManager,
TrustedProxyManager trustedProxyManager,
I18nHelper i18nHelper)
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 © 2013 Atlassian. All Rights Reserved.