com.atlassian.crowd.integration.http.util
Class CrowdHttpValidationFactorExtractorImpl

java.lang.Object
  extended by com.atlassian.crowd.integration.http.util.CrowdHttpValidationFactorExtractorImpl
All Implemented Interfaces:
CrowdHttpValidationFactorExtractor

public class CrowdHttpValidationFactorExtractorImpl
extends Object
implements CrowdHttpValidationFactorExtractor

Extracts ValidationFactors.


Method Summary
static CrowdHttpValidationFactorExtractor getInstance()
           
 List<ValidationFactor> getValidationFactors(javax.servlet.http.HttpServletRequest request)
          Retrieves validation factors from the request:

Remote Address: the source IP address of the HTTP request. Original Address: the X-Forwarded-For HTTP header (if present and distinct from the Remote Address).

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getValidationFactors

public List<ValidationFactor> getValidationFactors(javax.servlet.http.HttpServletRequest request)
Description copied from interface: CrowdHttpValidationFactorExtractor
Retrieves validation factors from the request:

  1. Remote Address: the source IP address of the HTTP request.
  2. Original Address: the X-Forwarded-For HTTP header (if present and distinct from the Remote Address).

Specified by:
getValidationFactors in interface CrowdHttpValidationFactorExtractor
Parameters:
request - HttpServletRequest.
Returns:
array of validation factors.

getInstance

public static CrowdHttpValidationFactorExtractor getInstance()


Copyright © 2012 Atlassian. All Rights Reserved.