microsoft.exchange.webservices.data.core
Class CookieProcessingTargetAuthenticationStrategy

java.lang.Object
  extended by org.apache.http.impl.client.TargetAuthenticationStrategy
      extended by microsoft.exchange.webservices.data.core.CookieProcessingTargetAuthenticationStrategy
All Implemented Interfaces:
org.apache.http.client.AuthenticationStrategy

public class CookieProcessingTargetAuthenticationStrategy
extends org.apache.http.impl.client.TargetAuthenticationStrategy

TargetAuthenticationStrategy that also processes the cookies in HTTP 401 response. While not fully according to the RFC's, this is often necessary to ensure good load balancing behaviour (e.g., TMG server requires it for authentication, where it sends a HTTP 401 with a new Cookie after 5 minutes of inactivity)


Field Summary
 
Fields inherited from class org.apache.http.impl.client.TargetAuthenticationStrategy
INSTANCE
 
Constructor Summary
CookieProcessingTargetAuthenticationStrategy()
           
 
Method Summary
 Map<String,org.apache.http.Header> getChallenges(org.apache.http.HttpHost authhost, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
           
protected  boolean isCachable(org.apache.http.auth.AuthScheme arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CookieProcessingTargetAuthenticationStrategy

public CookieProcessingTargetAuthenticationStrategy()
Method Detail

getChallenges

public Map<String,org.apache.http.Header> getChallenges(org.apache.http.HttpHost authhost,
                                                        org.apache.http.HttpResponse response,
                                                        org.apache.http.protocol.HttpContext context)
                                                 throws org.apache.http.auth.MalformedChallengeException
Specified by:
getChallenges in interface org.apache.http.client.AuthenticationStrategy
Overrides:
getChallenges in class org.apache.http.impl.client.TargetAuthenticationStrategy
Throws:
org.apache.http.auth.MalformedChallengeException

isCachable

protected boolean isCachable(org.apache.http.auth.AuthScheme arg0)


Copyright © 2012–2015 Microsoft. All rights reserved.